[Tutor] unicode problem

Kent Johnson kent37 at tds.net
Wed Sep 19 04:41:41 CEST 2007


Emad Nawfal wrote:
> *Hi All Tutors,*
> *I'm new and I'm trying to use unicode strings in my code (specifically
> Arabic), but I get this:*
> 
> IDLE 1.2.1
>>>> text = ur'المصريون'
> Unsupported characters in input

This seems to be a problem with IDLE rather than Python itself. This 
message:
http://www.thescripts.com/forum/thread543035.html

suggests editing one of the IDLE files to make it support unicode. 
Alternately you might want to use the plain Python interpreter and a 
text editor that supports arabic.

Kent


More information about the Tutor mailing list