syntaxerror
-
[python] SyntaxError: Non-ASCII characterpython/errors and solved 2017. 11. 26. 14:41
"Troubleshooting Hangul(not in ascii) comment SyntaxError: Non-ASCII character" SyntaxError: Non-ASCII character '\xec' in file aaa.py on line 8, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details If you add Hangul(or Non Ascii) comment, the above error occurs.In this case, put the following statement at the top of the source code. # -*- coding: utf-8 -*- Referencehtt..