Closed Thorium closed 1 month ago
This is because, even though the encoding in the XML file is specified as UTF-16 (UCS-2), the actual encoding is ascii or UTF-8. The file is not in a valid format as an XML file, but to display it correctly in WinMerge, uncheck the "Detect codepage info for these type of files: .html, .rc, xml" checkbox in the Codepage category of the Options window as shown below.
Thanks!
Changing <?xml version="1.0" encoding="utf-16"?>
to <?xml version="1.0" encoding="utf-8"?>
and re-saving the file did help.
I have a single XML file that fails to load in Winmerge but does work in other editors. For some reason Winmerge detects the encoding as ISO-10646-UC-2 and I see all the letters as Chinese Kanji characters. If I rename this file to .TXT then it works well.
So just wondering if this is a Winmerge bug or if there is something wrong with the file. Not an urgent issue, other XML files work well.
I cannot attach an XML file directly to GitHub issue, so I have to put it to a zip-file to attach here. But if you extract the file from zip and then try to open it with Winmerge, you should be able to replicate the issue.
test.zip