Laurent Pointal wrote: > You should prefer to put > # -*- coding: utf-8 -*- > at the begining of your sources files. With that you are ok with all Python > installations, whatever be the defautl encoding. > Hope this will become mandatory in a future Python version.
The default encoding specifies how Unicode strings are implicitly converted into byte strings. The code you gave specifies how Unicode string literals in a file are encoded, which is something completely different. -- http://mail.python.org/mailman/listinfo/python-list