Hello.

In Python 3, when opening a file without declaring the encoding
keyword is Python going to guess the encoding of the file or just use
the default?  That is, assume the file is UTF-8?

What led me to wonder this is that on Mac OS X 10.4.11, opening a file
containing UTF-8 encoded text creates a unicode object under the
assumption the text was "mac roman" encoding.  This seems like a bug.
It works if I set the encoding to UTF-8 explicitly.  I can post the
code but it sounds like there are some Mac encoding issues in flux so
I thought to ask first.

thanks, Kumar
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to