-
Notifications
You must be signed in to change notification settings - Fork 179
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
Chinese Display Error, unreadable code, how ? #28
Comments
Seems to work for me. Can you try this example and let me know if it works? from progress.spinner import Spinner
import time
pg = Spinner('中文')
for i in range(20):
time.sleep(0.1)
pg.next()
pg.finish() |
This has nothing to do with the progress module. The python parser cannot parse your test.py file because it has Non-ASCII characters inside (namely '中文') and there is no encoding declared. Try adding something like this:
in the beginning of the file. Check PEP 263 (https://www.python.org/dev/peps/pep-0263/) for more info. |
I have no experience with Windows and I don't know if your file's encoding is actually UFT-8 but if I had to guess about your problem I would say that the software is using ANSI escape characters, that from what I read here: https://en.wikipedia.org/wiki/ANSI_escape_code are not working on Windows:
Maybe check this thread: http://stackoverflow.com/questions/16755142/how-to-make-win32-console-recognize-ansi-vt100-escape-sequences |
pg = Spinner('中文')
pg.finish()
The text was updated successfully, but these errors were encountered: