Home › Forums › General XMetaL Discussion › XMetaL 5.5 does not correctly detect UTF-8? Anyone know if new versions do? › Reply To: XMetaL 5.5 does not correctly detect UTF-8? Anyone know if new versions do?
Reply to: XMetaL 5.5 does not correctly detect UTF-8? Anyone know if new versions do?April 18, 2012 at 5:12 pm
The sequence C2 A0 is a proper UTF-8 byte sequence for the Unicode NO-BREAK SPACE character. Perhaps you are confusing that byte sequence with the Unicode code point “U+00A0” or XML entity
I suspect the other XML parser you are using to check this is incorrectly assuming your file is encoded as Windows CP1252 or Latin1/ISO-8859-1 (that can happen quite easily for Windows applications). Or perhaps you are saving from another application and it is not correctly encoding the file? You may wish to add encoding=”UTF-8″ to your XML declaration to give it an extra hint. XML parsers must be able to read UTF-8 so if it is a proper parser I think that should give it enough information.
Can you let me know what this other software is?