Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Still getting UnicodeEncodeError #11
Hi there. First of all thank you for this tool, which seems very handy.
I ran into some errors with a lot of my repositories though, all related to unicode. I've seen you added fixes for that in the past, but I still receive the following a lot (with both stable and GitHub version):
As you can see I've narrowed it down and found one particluar file with only one commit and one author that causes the error. The author is in the format "surname lastname <firstname.lastname@example.org>", and that seems to be the problem.
I tried using different code pages in the console, but they either don't change anything (850, 1252) or are not supported by Python 2.7 (65001).
After digging a bit further and replaying the git commands you're using: I realized the output of these commands does \r\n for line endings on my machine. I have little knowledge of Python, but I've seen regex engines not matching \r\n correctly with $ - might that be the case here?
Thanks for the quick response.
This fixes the error, but breaks the progress bar of tqdm in a bad way (every step in a new line). Additionally:
Somewhat fixes the progress bar, but it does show the unicode replacement char from time to time. I can live with that :).
IMO this should be added to the docs somewhere?