Special Characters in Console

Martin v. Löwis martin at v.loewis.de
Wed Oct 1 17:55:43 EDT 2003


"Neil Hodgson" <nhodgson at bigpond.net.au> writes:

>    The windows console is generally using the "Terminal" font with the "DOS:
> Western Europe" character set which displays \xE4 as capital sigma. I don't
> know of an encoding that matches this.

In Python 2.3, using a Unicode string should make it work "out of the
box". The code page is cp850, but printing on sys.stdout will
automatically convert to the terminal encoding, so application
knowledge about the terminal encoding is not needed.

Regards,
Martin




More information about the Python-list mailing list