I'm working with the mixed encoding files in a repo.
My system $LANG is en_US.UTF8, file encoding is iso-8859-1. when I run git checkout -p HEAD file
git uses UTF8 to show me differences.
And I see something like this:
- "�" - EUR
- "�" - GBP
- "�" - JPY
+ "�" - EUR
+ "�" - GBP
+ "�" - JPY
Discard this hunk from index and worktree [y,n,q,a,d,/,j,J,g,e,?]?
The problem is, that "�" is not the correct content of a file. When I run iconv -f iso-8859-1 -t UTF8 file | less
I see
"¤" - EUR
"£" - GBP
"¥" - JPY
When I accept or discard a change when running git checkout -p
I'd like to see exactly what characters changed instead of "�" character, which is uninformative. How can I do it?