Version: unspecified (using Devel) OS: Linux When opening differences between files with CP1252 encoding, Kompare fails to render non-ASCII characters as expected. Reproducible: Always Steps to Reproduce: This is what I do: 1. Open with KDE SVN an SVN repository with Windows files (DOS/Windows end of line, and CP1252 encoding). 2. With Kate, which detects the encoding of the file fine, I add an special character to a random line of the file: ’. 3. I select this file, and choose to open differences between local changes and server revision in Kompare. Actual Results: When rendering the difference, Kompare shows the character as an unknown character (interrogation symbol over a black background). Expected Results: It should render the character as it is: ’. Kompare 4.0.1 KDE SC 4.7.4
Created attachment 66770 [details] Graphical explanation for the issue.
You have to specify the encoding in the preferences, the default is your system locale's encoding, which is usually UTF-8.
When calling Kompare from KDESVN, this command is used: kompare -on - In the resulting Kompare window, encoding options is not available in the settings dialog. I tried using -e parameter in the call, but neither “-e "cp1252"” nor “-e "cp 1252"” seems to work. So, what is the procedure in this case to get the right encoding?
Hmmm, there's an encoding setting under Compare files…, but that requires you to give the files to compare again, so that's not helpful. I think we need a preference for the default encoding to use.