-
-
Notifications
You must be signed in to change notification settings - Fork 265
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
UnicodeEncodeError when Python program outputs unicode #216
Comments
Is that the answer to this issue as well? #63 (comment) |
Well, I tried the |
Got it to work by adding Not sure if I should leave this open. |
My guess is that the program can't infer the correct encoding (because there is no terminal), so it falls back to I'd say it's an error on their end, at least based on what you've described. So I'm going to close the issue. Hopefully, your findings (the environment variable) may also be useful to someone in the future. |
Version
3.6.4
Platform
.NET 7 / Windows 11
Steps to reproduce
Install https://github.com/jsavargas/zspotify (I used
pip
, not sure if using Docker would make a difference)Then run this code:
Which will throw:
Details
The unicode header ("splash screen") they're printing seems to be the issue: https://github.com/jsavargas/zspotify/blob/master/zspotify/__main__.py#L263
I have tried setting different output encodings but without success.
Checklist
The text was updated successfully, but these errors were encountered: