'ascii' codec can't encode character u'\xa0' #89
eider-i128
commented
Nov 14, 2015
Thanks for this. I am going to write a separate function, something like HydrusData.Print, to handle this and all other occasions of print() in the program, to automatically encode everything that goes to the log.
I don't know why print() in python 2.7 doesn't automatically do this. Maybe there is a way for me to tell the current environment "Hey, if you ever need to convert back and forth between unicode and a bytestring, just use utf-8", but I don't know it.
eider-i128
commented
Nov 15, 2015
You may try setting environment variable "PYTHONIOENCODING=UTF-8"
https://docs.python.org/release/2.7.10/using/cmdline.html?highlight=pythonioencoding
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Another Unicode problem that was in there for a quite some time. At the end of each sync session, a summary is printed to log:
Unfortunately, here's what happens on some locales:
The fix attached to this pull request should take care of that problem. This is very important to fix as the bug causes GUI to display error titled "Failed to update public tag repository" which can be misleading.