Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

\xe5錯誤 #2

Open
fxsh1301 opened this issue Aug 22, 2018 · 1 comment
Open

\xe5錯誤 #2

fxsh1301 opened this issue Aug 22, 2018 · 1 comment

Comments

@fxsh1301
Copy link

您好
我直接將py檔載下來執行會發生以下錯誤
SyntaxError: Non-ASCII character '\xe5' in file PttAuto.py on line 17, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

在第一行補上#coding=utf-8後,內文的中文字卻變成亂碼了
請問該如何解決呢

@twtrubiks
Copy link
Owner

文章內有說明哦

此範例使用 Python 3.4.3

如要使用 python 2.7.3 可參考 20a029ab14f55e81b790c90698c8cd0d0b03ad3d

你是用哪一個檔案以及 python 版本呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants