getdefaultencoding - how to change this?

John Pinner funthyme at gmail.com
Fri Jan 21 06:43:31 EST 2011


On Jan 20, 4:46 pm, Robert Kern <robert.k... at gmail.com> wrote:

<snips>

>
> Instead, you want to use an encoding declaration in each file:
>
> http://docs.python.org/reference/lexical_analysis.html#encoding-decla...

All that this does is tell the interpreter how the source file is
encoded, it does not affect default encodings etc.

John
--





More information about the Python-list mailing list