22

Is it possible to configure Meld to open diff/merge files with encoding CP-1252 in Ubuntu 16.04?

2 Answers 2

36

You should configure it by setting the gsettings key 'detect-encodings' for the wanted encodings.

gsettings set org.gnome.meld detect-encodings "['UTF-8', 'WINDOWS-1252', 'ISO-8859-15', 'UTF-16']"
6
  • 2
    May be you know how to do the same on Windows?
    – Jk.
    Nov 11, 2016 at 14:18
  • 18
    I found it: [HKEY_CURRENT_USER\SOFTWARE\GSettings\org\gnome\meld] "detect-encodings"="['WINDOWS-1251', 'UTF-8', 'ISO-8859-15', 'UTF-16']"
    – Jk.
    Nov 11, 2016 at 14:55
  • 1
    Awesome. This should be in the GUI I think.
    – Miyagi
    Oct 31, 2018 at 16:54
  • What about WSL? I updated my gsettings in WSL, but it didn't help. I am outputting the video to VcXsrv. I do not have a GSettings in my registry because Meld is installed in Ubuntu 18.04 WSL.
    – KenJ
    Sep 10, 2020 at 17:35
  • 1
    @Jk. Not sure why you put WINDOWS-1251 rather than "1252".
    – MasterHD
    May 19, 2022 at 9:35
0

If you can´t find, you can create it.

Navigate to HKEY_CURRENT_USER\SOFTWARE\GSettings\org\gnome\meld and create the string value.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.