|
|
|
|
DREAM. LEARN. DISCOVER... GET
STARTED.
Everything to get you started
on that dream home and so much more.
|
|
|
|
XML Encoding Problems - Hexadecimal Value 0x1A, is an Invalid Character
|
|
|
Recently I started noticing exceptions in my log files that stated "hexadecimal value 0x1A, is an invalid character". I did some searching and a lot of other people have had the same problem. It occurs when someone pastes in text that contains specific unicode characters that are invalid in XML. From what I gather this frequently happens when someone copies in text from Microsoft Word.
The trick was to find out which characters are invalid and then use a regular expression to remove them.
You can look at the specs for all the details:
http://www.w3.org/TR/xml11/#charsets
http://www.w3.org/TR/REC-xml/#charsets
http://www.unicode.org/Public/UNIDATA/UCD.html
But it is probably easier to just get the code:
/// Read more
|
|
|
|
Tags : xml, encoding
|
|
|
|
Published On : 03-03-2008
|
|
|
|
Author : Steve Donegan
|
|
|
|
13097 Views
|
|
|
|
|
|
|
|