how to support chinese in dos window

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • gdyren@gmail.com

    how to support chinese in dos window

    Create a new py named test.py,the content is "print "¤¤""
    now in dos window python test.py
    return "SyntaxErro r: Non-ASCII character '\xd6' in file test.py on
    line 1, but no encodi
    ng declared; see http://www.python.org/peps/pep-0263.html for details"
  • gdyren@gmail.com

    #2
    Re: how to support chinese in dos window

    On 10ÔÂ16ÈÕ, ÉÏÎç10ʱ18·Ö, gdy...@gmail.co m wrote:
    Create a new py named test.py,the content is "print "ÖÐ""
    now in dos window python test.py
    return "SyntaxErro r: 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 "ä¸"

    Comment

    Working...