I use CodeCompare to merge translation files formatted by XML. With two files of different versions I am getting weird display of one of these in CodeCompare, while both show perfectly well in Notepad++.
I can see in the footer that encoding was chosen differently, the mispresented is ANSI, the correctly displayed UTF-8.
I could not find any way to tell CodeCompare to take same UTF-8 encoding for both.
Any hints how to get that done?
Thanks a lot in advance!
Change encoding possible?
Re: Change encoding possible?
Code Compare detects encoding automatically. To prevent misdetection, you can write Byte Order Mark to file (Notepad++ -> Encoding -> Convert to UTF-8 BOM).
Can you attach a file that is shown in Code Compare with the wrong encoding?
Can you attach a file that is shown in Code Compare with the wrong encoding?
Re: Change encoding possible?
Thanks a lot, that did the fix. Strange thing is that NotePad++ did take it for UTF8 already, CodeCompare not. Even when the lead line clearly says <?xml version="1.0" encoding="UTF-8"?>
As advised I took Notepad++ to convert to "UTF8 with BOM" and, voila, it fixed the matter.
Thanks a lot, this saved me lots of time!!
As advised I took Notepad++ to convert to "UTF8 with BOM" and, voila, it fixed the matter.
Thanks a lot, this saved me lots of time!!