My configuration: Win7 + Python 2.6 + eclipse + PyDev
How do I enable Unicode print statements in:
- PyDev console in eclipse
- Idle Python GUI
Example print statement:
print(u"שלום עולם")
This comes out as:
ùìåí òåìí
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For eclipse unicode console support:
-Dfile.encoding=UTF-8toeclipse.iniwhich is in the eclipse install directory.Run\Run Configurations\Python Run\configuration\Common\make sure UTF-8 is selectedWindow\Preferences\General\Workspace\Text file encoding\making sure UTF-8 is selected[python install path]\Lib\site.py– change fromencoding = "ascii"toencoding = "utf-8"Window\Preferences\Appearance\Colors and Fonts\Debug\Console font\EditIn the installation I did all of the above:
For django models: