Problem with national characters

"Martin v. Löwis" martin at v.loewis.de
Fri Apr 1 00:34:09 EST 2005


Leif B. Kristensen wrote:
> Is there a way around this problem? My character set in Linux is
> ISO-8859-1. In Windows 2000 it should be the equivavent Latin-1, though
> I'm not sure about which character set the command shell is using.

You need to do locale.setlocale(locale.LC_ALL, "") to get
locale-specific upper-casing.

Notice that things are more difficult in the Windows terminal window,
as this uses an encoding different from the one that the system's
locale functions expect.

Regards,
Martin



More information about the Python-list mailing list