Unicode issue on Windows cmd line

Benjamin Kaplan benjamin.kaplan at case.edu
Wed Feb 11 22:13:22 CET 2009


On Wed, Feb 11, 2009 at 4:10 PM, Benjamin Kaplan
<benjamin.kaplan at case.edu>wrote:

>
>
> On Wed, Feb 11, 2009 at 3:57 PM, "Martin v. Löwis" <martin at v.loewis.de>wrote:
>
>> > 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.
>
>
> Well,
>

Whoops. Didn't mean to hit send there. I was going to say, you can't have
everything when Microsoft is only willing to break the programs that average
people are going to use on a daily basis. I mean, why would they do
something nice for the international community at the expense of breaking
some 20 year old batch scripts? Those were the only things that still worked
when Vista first came out.



>>
>> Regards,
>> Martin
>> --
>> http://mail.python.org/mailman/listinfo/python-list
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090211/730d8bf2/attachment.html>


More information about the Python-list mailing list