Git Product home page Git Product logo

Comments (3)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 30, 2024
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 [email protected] on 26 Dec 2014 at 9:53

from gitinspector.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 30, 2024
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 [email protected] on 27 Dec 2014 at 6:23

  • Changed title: Terminal encoding error when running on Yosemite
  • Changed state: Duplicate

from gitinspector.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 30, 2024
Thank you, it solved it and I learned something new :)

Original comment by [email protected] on 27 Dec 2014 at 9:46

from gitinspector.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.