Closed GoogleCodeExporter closed 9 years ago
seems to be many places to edit though, not sure if there is a smarter way??
see this error for example
$ python gitinspector.py -T --format='html' ~/repos/joniab/
Traceback (most recent call last):
File "gitinspector.py", line 194, in <module>
main()
File "gitinspector.py", line 182, in main
__run__.output()
File "gitinspector.py", line 72, in output
format.output_header()
File "/Users/niklasosterlund/Dropbox/public repos/gitinspector/gitinspector/format.py", line 101, in output_header
hide_minor_rows = _("Hide rows with minor work")))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xa3' in position
14182: ordinal not in range(128)
Original comment by niklas.o...@gmail.com
on 26 Dec 2014 at 9:53
Has been reported previously.
This is because your terminal is configured to use ascii. Gitinspector will
always try to output characters into the chosen encoding. Most likely, it's
trying to encode unicode characters into ascii (which is your chosen encoding).
If you make sure to set your LANG to something like en_US.UTF-8 it should start
working. Refer to the other issue you submitted.
It would also work to introduce encode everywhere and use
getpreferredencoding() + "ignore" on all encode calls, but this is more of a
hassle - and would also result in skipped characters.
/Adam Waldenberg
Original comment by gitinspe...@ejwa.se
on 27 Dec 2014 at 6:23
Thank you, it solved it and I learned something new :)
Original comment by niklas.o...@gmail.com
on 27 Dec 2014 at 9:46
Original issue reported on code.google.com by
niklas.o...@gmail.com
on 26 Dec 2014 at 9:47