how to support chinese in dos window

gdyren at gmail.com gdyren at gmail.com
Wed Oct 15 22:26:33 EDT 2008


On 10月16日, 上午10时18分, gdy... at gmail.com wrote:
> Create a new py named test.py,the content is "print "中""
> now in dos window python test.py
> return "SyntaxError: Non-ASCII character '\xd6' in file test.py on
> line 1, but no encodi
> ng declared; seehttp://www.python.org/peps/pep-0263.htmlfor details"

just i add a line : # -*- coding: utf-8-*-
then redo it
return "涓"



More information about the Python-list mailing list