In article <[email protected]>, Ned Deily <[email protected]> wrote: > In python 3.x, of course, the encoding happens automatically but you > still have to tell python, via the "encoding" argument to open, what the > encoding of the file's content is (or accept python's default which may > not be very useful): > > >>> open('foo1','w').encoding > 'mac-roman' > > WTF, indeed.
BTW, I've opened a 3.1 release blocker issue about 'mac-roman' as a default on OS X. Hard to believe none of us has noticed this up to now! http://bugs.python.org/issue6202 -- Ned Deily, [email protected] -- http://mail.python.org/mailman/listinfo/python-list
