how to support chinese in dos window

gdyren at gdyren at
Thu Oct 16 04:26:33 CEST 2008

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

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

More information about the Python-list mailing list