SyntaxError: Non-ASCII character '\xe6' in file test.py on line 15, but no encoding declared

2015-02-02 17:21:55 -0500
SyntaxError: Non-ASCII character '\xe6' in file test.py on line 15, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details

When you see this you should put

# coding=UTF-8

at the 1st line of your test.py

«Newer      Older»
Comment:
Name:

Back to home

Subscribe | Register | Login | 中文 | N