git-draw icon indicating copy to clipboard operation
git-draw copied to clipboard

Error: UTF8 codes > 3 bytes are not currently supported. Or perhaps "-Gcharset=latin1" is needed?

Open jayhawk opened this issue 11 years ago • 4 comments

I got this error. Error: UTF8 codes > 3 bytes are not currently supported. Or perhaps "-Gcharset=latin1" is needed? Any suggestion on how to solve it? Thanks

jayhawk avatar Feb 21 '14 02:02 jayhawk

Try git-draw -p > out.dot and dot -Gcharset=latin1 -Tpng out.dot > out.png

Mitmischer avatar Feb 21 '14 18:02 Mitmischer

You're right. But I don't have a clear idea how to solve it. Maybe one command line option to define the character encoding used for the content of all git objects. Internally that would be passed on to dot ala "-Gcharset=latin1" as you suggested.

sensorflo avatar Feb 22 '14 17:02 sensorflo

git-draw: command not found why exist this problem?

tiandalihe avatar Mar 07 '14 04:03 tiandalihe

Is the executable mode bit set? Being in the directory you installed git-draw do a ls like so

$ ls -la git-draw -rwxr-xr-x 1 sensorflo sensorflo 11398 Feb 23 18:50 git-draw

The forth letter from the left must be an x like in the example above. You can set the executable bit like so

$ chmod u+x git-draw

When trying to execute, make sure the directory your git-draw script is in is in your PATH environment variable, or maybe better execute it like "./git-draw" instead just "git-draw".

sensorflo avatar Mar 09 '14 17:03 sensorflo