Closed ghost closed 6 years ago
@varun7447 Setting the environment variable PYTHONIOENCODING should fix your problem. Please give it a try!
What should be the encoding set to?
On Thu, Jan 25, 2018 at 11:47 PM Michael Kaaden notifications@github.com wrote:
@varun7447 https://github.com/varun7447 Setting the environment variable PYTHONIOENCODING should fix your problem. Please give it a try!
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ejwa/gitinspector/issues/168#issuecomment-360707533, or mute the thread https://github.com/notifications/unsubscribe-auth/AEdRZL3w-EgppDt02-Tp0BkAbj0UUBMVks5tOYMHgaJpZM4Rqvxh .
That depends. I like using UTF-8.
I had the same issue. Using env PYTHONIOENCODING=utf-8 gitinspector.py ...
works for me.
This is an old issue, previously discussed. It is related to Python and invalid terminal encodings. See for example #19. Not a gitinspector issue.
Closing.
I think it is worth to document this issue in the wiki.
@Art4 It kinda already is mentioned in the FAQ. However it uses UnicodeEncodeError exception as an example, which is related. Same issue, but a different exception. It all comes down to a terminal that can't handle the characters.
In this instance it just happens earlier because sys.stdin.encoding is set to None.
Getting this error when running from Jenkins Shell command