The XML encoding does not appear to match the characters used.


This error is commonly seen when an encoding like iso-8859-1 is declared when what actually is desired is windows-1252. It also occurs when numeric character references are computed based on windows-1252 code points values as opposed to the character's code point in ISO/IEC 10646.


For maximum portability, convert the characters to either a utf or iso encoding. If that is not practical, try to match the declaration to reflect the actual encoding used.

If you chose to use numeric character references, make sure that you use the Unicode codepoint value rather than the codepoint in the native character set. Users on windows platform may find the, cp1252 to Unicode table helpful - of special interest is the mapping of characters in the 0x80 through 0x9F range.

Not clear? Disagree?

You might be able to find help in one of these fine resources.

Copyright © 2002-4 Mark Pilgrim and Sam Ruby