On 8/17/08, Robert Johansson <[EMAIL PROTECTED]> wrote:

> 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".

To use non-ascii characters in Python code you have to declare the
encoding of the source file with a comment such as
# coding=UTF-8

See http://python.org/dev/peps/pep-0263/

Kent
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to