Trying to understand this moji-bake

Chris Angelico rosuav at gmail.com
Sat Jan 25 01:08:56 EST 2014


On Sat, Jan 25, 2014 at 3:37 PM, Steven D'Aprano
<steve+comp.lang.python at pearwood.info> wrote:
> But using Python 2.7, I get a really bad case of moji-bake:
>
> [steve at ando ~]$ python2.7 -c "print u'ñøλπйж'"
> ñøλÏйж

What's 2.7's default source code encoding? I thought it was ascii, but
maybe it's assuming (in the absence of a magic cookie) that it's
Latin-1.

ChrisA



More information about the Python-list mailing list