Kirill Simonov si รจ divertito a scrivere: > Unfortunately, most IDEs I tried failed miserably in this respect. My > test was simple: I've run the code > name = raw_input("What's your name? ") # written in Russian > print "Hello, %s!" % name # in Russian as well > both from the shell and as a standalone script. This either caused a > UnicodeError or just printed invalid characters.
I highly dislike asking stupid questions, and this might be stupid indeed... but did you write # -*- coding: iso-8859-5 -*- or # -*- coding: koi8_r -*- (they both seem suited to the Russian language, but I don't know the difference) as the first line in your .py file? Personally, I use Eclipse+Pydev (a bit steep to learn at the beginning, and quite memory and cpu hogging since it's a java-based ide; don't use it on old/slow computers with less than 512MB RAM, and don't use version < 3.2 either) and it uses that very line to recognize the actual character set employed. You may check with other encodings as well. http://docs.python.org/lib/standard-encodings.html It does work on Windows indeed. UPDATE: I tried with Eclipse+Pydev, and using koi8_r I seems to be able to simply copy&paste a piece of the ixbt.com homepage in the editor I can save and use it correctly. -- Alan Franzoni <[EMAIL PROTECTED]> - Togli .xyz dalla mia email per contattarmi. Remove .xyz from my address in order to contact me. - GPG Key Fingerprint (Key ID = FE068F3E): 5C77 9DC3 BD5B 3A28 E7BC 921A 0255 42AA FE06 8F3E -- http://mail.python.org/mailman/listinfo/python-list