Git diff can’t parse utf-8 characters – instead it shows weird <8F>

Hi, if

git diff.

outputs something like

-            'No t<C3><A1><C3><A1>k, nevzd<C3><A1>vaj to <F0><9F><99><8F>'
+            'No t<C3><A1><C3><A1>k, nevzd<C3><A1>vaj to <F0><9F><99><8F>',

Then you need to add following line to your ~/.profile ( or ~/.bash_profile, depending on system )

export LESSCHARSET=utf-8

Log out & Log in and try again.

Write a Comment

Comment