-
Notifications
You must be signed in to change notification settings - Fork 92
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
feature_request(encoding): force UTF-8 for Windows users #59
Labels
Comments
@nateprewitt , @kennethreitz, any ideas, how to fix it? Thanks. |
For what it's worth, this sounds like a Python issue perhaps? The Also, be aware that a lot of Windows -things- default to UTF-16... Also, check out Microsoft Terminal for a much improved CLI experience (https://github.com/microsoft/terminal) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
1. Summary
In my opinion, UTF-8 should be the default encoding for Windows users. If developers of delegator.py don't want to do this, it would be nice to have an option for UTF-8.
2. Argumentation
I don't understand, why needs these lines for Windows users.
More about
locale.getdefaultlocale()
. I have English Windows and Russian language for non-unicode programs. Python interpreter output:I change my language for non-Unicode programs to English (United States) as recommend in this answer:
I restart Windows → I open Python Interpreter again:
Not UTF-8 again. The example shows that
locale.getdefaultlocale()
can't set UTF-8 for Windows.3. Example
SashaDelegator.py
(in UTF-8):I run in console
python SashaDelegator.py
4. Expected behavior
5. Actual behavior
This hack also doesn't help.
I get the same output.
And if I use hacks, I have problems with code quality tools.
6. Environment
Thanks.
The text was updated successfully, but these errors were encountered: