yousseb / meld

Meld for macOS
https://yousseb.github.io/meld/
GNU General Public License v2.0
2.28k stars 119 forks source link

Invalid byte sequence in conversion input #87

Open RobinTournemenne opened 5 years ago

RobinTournemenne commented 5 years ago

Since the mojave release I stamble very often on this issue where meld refuses to open files for a basic comparison. The error message is:

Invalid byte sequence in conversion input

I guess it has to do with encoding: meld trying to open the file following an encoding while the file is encoded in another format.

Any ideas?

Thanks a lot for the work!

lauhub commented 5 years ago

It seems the problem comes with unicode characters (UTF-8 for me).

Below a sample that leads to the error:

% A markdown example in french with unicode char

# The word is

aisé
zhangjun-qcqi commented 5 years ago

I have also ran into this issue if I try to compare two UTF-8 files directly. For now, I'm using a workaround: first create a blank comparison with no files selected, then drag the files into Meld, side by side. Meld would then happily do the comparison just as the good old times.