[Tutor] unsupported characters

Robert Johansson robert.johansson at math.umu.se
Sun Aug 17 11:33:28 CEST 2008


Hi, I have problems using characters from the Swedish language. I tried the
following in IDLE under MacOS X leopard (running Python 2.5.1)  :

 

S=’ö’

 

Displaying error message: “unsupported characters in input”.

 

Running Python from a terminal I can’t even type the character, all that
happens is that I get a little “boing” from my machine.I tried to set
various things  like LC_CTYPE with the locale module but that doesn’t work.
I don’t really know what that module does but If I try locale.getlocale(), I
get: (‘sv_SE’,’ISO8859-1’). Anyone who knows how to fix this? I would be
very grateful.

 

/Robert 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20080817/f66af4dd/attachment.htm>


More information about the Tutor mailing list