View Single Post
Old Feb 9th, 2007, 4:35 PM   #1
UnKnown X
Hobbyist Programmer
 
UnKnown X's Avatar
 
Join Date: Dec 2005
Location: Sandvika, Norway
Posts: 114
Rep Power: 0 UnKnown X is an unknown quantity at this point
Send a message via MSN to UnKnown X
Inputting Non-ASCII Characters

More specifically, the characters in the extended ASCII set.

Admittedly, I've only tried raw_input(), but that's the only method I know except file input, to which I'm trying to avoid resorting.

Whenever I input a character in the extended ASCII set (say, "æ"), I get a UnicodeEncodeError exception. Google has not helped me much, as I am only able to find descriptions on how to use foreign characters in the Python file itself, which is of no use to me.

Thanks for any help, if you have any.
UnKnown X is offline   Reply With Quote