> I've tested the text file for "Help/Help with Images" and it all
> decodes to unicode properly.

This is actually a coincidence. The text file is not encoded at all so
it'll use the OS/python install default. The default encoding for my
os/python install is ascii which just so happens to decode to unicode
correctly.

Test your default encoding by running sys.getdefaultencoding() which is
set in lib/python2.4/site.py.

I'm testing a file's encoding by running:

>>> f=open('text')
>>> print f.encoding
None
>>>

Scott

_______________________________________________
Sycamore-Dev mailing list
[EMAIL PROTECTED]
http://www.projectsycamore.org/
https://tools.cernio.com/mailman/listinfo/sycamore-dev

Reply via email to