Unicode?
Iwan Vosloo <[email protected]> Mon, 23 Oct 2006 09:55:37 +0200
| Newsgroups | gmane.comp.python.spyce.general |
|---|---|
| Message-ID | <[email protected]> |
Hi there,
I've just been wondering how spyce deals with Unicode. As far as I can
figure it out, spyce reads .spy and .spi files in method
"spyceFileCacheGenerate" in file spyce.py. And the relevant code looks
like this:
try:
f = open(filename)
code = f.read()
finally:
if f: f.close()
This does not seem to be aware of character encoding at all?
I've also scanned down the code inside spyceCode's constructor etc, but
nowhere do I see that the byte-strings read from the files here are
decoded? Is spyce thus unaware of character-encoding and unicode
issues?
-i
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642