Help get this topic noticed by sharing it on Twitter, Facebook, or email.

Parsing error for special character trademark symbol

Hi I have a xml which has special character (SDâ„¢) . This is to represent the trademark symbol. I'm using UTF-8 foramt to generate the XML.While parsing the xml to java object using XMLBeans, I'm getting the following exception. Could you please help us how to parse the special characters of trademark symbol. Thanks.
org.apache.xmlbeans.XmlException: error: Illegal XML character: 0x1a
org.apache.xmlbeans.impl.piccolo.io.IllegalCharException: Illegal XML character: 0x1a
at org.apache.xmlbeans.impl.piccolo.xml.XMLReaderReader.read(XMLReaderReader.java:169)
at org.apache.xmlbeans.impl.piccolo.xml.PiccoloLexer.yy_refill(PiccoloLexer.java:3474)
at org.apache.xmlbeans.impl.piccolo.xml.PiccoloLexer.yylex(PiccoloLexer.java:3958)
2 people have
this question
+1
Reply