getdefaultencoding - how to change this?
Philip Semanchuk
philip at semanchuk.com
Thu Jan 20 11:58:41 EST 2011
On Jan 20, 2011, at 11:47 AM, Robert Kern wrote:
> On 1/20/11 9:47 AM, Philip Semanchuk wrote:
>
>> I'm glad that worked for you. Alternatively, it seems like you can set the default encoding in site.py which sounds easier than recompiling Python.
>
> Never do that. It breaks dicts and makes your code non-portable.
I've never been tempted for the very non-portability reason you cite. I didn't know that it would break dicts, though. Thanks for the education.
bye
Philip
More information about the Python-list
mailing list