Open endrebak opened 5 years ago
Does it work if you run it with the environment variable PYTHONIOENCODING=utf8
?
Yes! Thanks. But the reason I'm using bullet is so that noobs do not need to use scary command line options. I do not want people having to rely on setting env variables. Is there a way to fix this in my python code? You can use sys to set the default encoding, but this is a no-no according to google. Perhaps bullet should print a helpful error message that explains why this happens at least?
Definitely, this isn't a proper solution, just the easiest way of tracking down the issue.
It is strange though because utf8 should be the default for Python 3. Do you have a different file encoding specified for your own code?
I think the issue is that unicode ● character (\u25cf) in the source file. If you've copied that into your own code with a different file encoding, that could problems.
Also, what do you get from import sys; print(sys.getdefaultencoding())
?
When using Bullet I always get this error.