Special Characters in Console
Neil Hodgson
nhodgson at bigpond.net.au
Wed Oct 1 17:16:36 EDT 2003
More information about the Python-list mailing list
Wed Oct 1 17:16:36 EDT 2003
- Previous message (by thread): Special Characters in Console
- Next message (by thread): Special Characters in Console
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Gregor: > I am trying to print some special characters, but they come out as > different characters in the Python console. If I have a script like this: > > # -*- coding: latin_1 -*- > > print "Mädchen" > print "M\xE4dchen" > > Both statements produce a capital sigma where they ä should be. Typing > "\xE4" directly in the console also spits back a sigma. > > What encoding does the console use? Is there a way to get it to use > latin-1? 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. Neil
- Previous message (by thread): Special Characters in Console
- Next message (by thread): Special Characters in Console
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list