Trillium
2005-07-07 20:25:04 UTC
I am trying to transform an XML file which has an attribute value that
includes the character 0xA0 (decimal 160) with the error message:
There is an invalid character in the given encoding.
The file has encoding="UTF-8" in the xml declaration. I tried using
Xselerator to do the transform (which uses msxml 4), which it does not
produce an error, and validating it returns valid.
I am not very familiar with encodings, but I believe that UTF-8 should allow
for non-ascii characters(?). And I am not sure why I would get a different
result running the transform with XslTransform file in a .net application
(which I assume would use the msxml parser) than the msxml parser as used by
Xselerator.
Any ideas?
includes the character 0xA0 (decimal 160) with the error message:
There is an invalid character in the given encoding.
The file has encoding="UTF-8" in the xml declaration. I tried using
Xselerator to do the transform (which uses msxml 4), which it does not
produce an error, and validating it returns valid.
I am not very familiar with encodings, but I believe that UTF-8 should allow
for non-ascii characters(?). And I am not sure why I would get a different
result running the transform with XslTransform file in a .net application
(which I assume would use the msxml parser) than the msxml parser as used by
Xselerator.
Any ideas?