You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use icdiff with git. It's awesome! But some of my project files are not in utf8 and I can not view diff with that files. Would it be more reliable not to throw exception but to convert bad symbols as escape sequences or stub chars? $ git diff HEAD~ error: file '/tmp/R97Zaw_http.c' not valid with encoding 'utf-8': <invalid continuation byte> at 74350-74351
The text was updated successfully, but these errors were encountered:
The correct way will be to enable encoding auto-detection instead. There are many libraries for that.
At the moment use something like --encoding=ISO8859 for example (use file MYFILE.txt to check the encoding).
jeffkaufman
changed the title
not valid with encoding 'utf-8'
Feature Request: auto-detect encodings
Dec 21, 2017
I use icdiff with git. It's awesome! But some of my project files are not in utf8 and I can not view diff with that files. Would it be more reliable not to throw exception but to convert bad symbols as escape sequences or stub chars?
$ git diff HEAD~
error: file '/tmp/R97Zaw_http.c' not valid with encoding 'utf-8': <invalid continuation byte> at 74350-74351
The text was updated successfully, but these errors were encountered: