Unicode issue on Windows cmd line
"Martin v. Löwis"
martin at v.loewis.de
Wed Feb 11 15:57:26 EST 2009
> Having issue on Windows cmd.
>> Python.exe
>>>> a = u'\xf0'
>>>> print a
>
> This gives a unicode error.
>
> Works fine in IDLE, PythonWin, and my Macbook but I need to run this
> from a windows batch.
>
> Character should look like this "ð".
>
> Please help!
Well, your terminal just cannot display this character by default; you
need to use a different terminal program, or reconfigure your terminal.
For example, do
chcp 1252
and select Lucida Console as the terminal font, then try again.
Of course, this will cause *different* characters to become
non-displayable.
Regards,
Martin
More information about the Python-list
mailing list