[Chicago] python to use utf8 as default for everything.

Kumar McMillan kumar.mcmillan at gmail.com
Mon Oct 13 02:11:57 CEST 2008

On Sat, Oct 11, 2008 at 11:34 PM, Lukasz Szybalski <szybalski at gmail.com> wrote:
> Hello,
> I found this post that talks about how to switch default python
> encoding to uft8 using sys.setdefaultencoding('utf-8').
> http://blog.ianbicking.org/illusive-setdefaultencoding.html
> sys.setdefaultencoding('utf-8')

this seems like a good idea at first but IMHO it's a bad one.
Instead, you're better off writing your code to work with the default
encoding of python <= 2.5 which is ascii.  If not, your code will not
be portable.

> but then it somehow gets deleted and needs to be reloaded?!!?? Is that
> still the case? I wasn't sure how old this post is?
> Thanks,
> Lucas
> _______________________________________________
> Chicago mailing list
> Chicago at python.org
> http://mail.python.org/mailman/listinfo/chicago

More information about the Chicago mailing list