OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: [xml-dev] Parsing Kanji (Japanese) characters...

[ Lists Home | Date Index | Thread Index ]

Not really a problem of parsing Kanji.  0x1b is a control character
(specifically, it's the escape character).  XML can't handle any characters
in the control set except CR, LF, and HT.  So either someone has created an
invalid document, or the parser doesn't recognize the encoding and is trying
to read it as UTF-8, in which that byte sequence is not a legal XML

On Wed, Jun 18, 2003 at 02:02:54PM -0400, nizar.hirani@citicorp.com wrote:
>Hi -
>Is the SAX Parser able to handle Kanji characters? Any help/pointers are
>I am trying parse and document in Kanji characters and get the following
>stack trace:
>java.rmi.RemoteException: EJB Exception: ; nested exception is:
>es.DealTicketManagerServiceException: nested exception is:
>org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x1b)
>was found in the element content of the document.
>org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x1b)
>was found in the element content of the document. at
>92) at
>XMLDocumentScanner.java:613) at
>spatch(XMLDocumentScanner.java:1336) at
>tScanner.java:399) at
>weblogic.apache.xerces.framework.XMLParser.parse(XMLParser.java:1138) at
>l.java:203) at
>java:144) at
>javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:86) at
>Nizar Hirani
>(416) 947-5421
>This message may contain confidential, proprietary or legally privileged
>information.  If you are not the intended recipient, please notify the
>sender immediately and delete the message from your system.  You should
>not copy or use it for any purpose, nor disclose its contents to any
>other person. 
>Also, if you are not the intended recipient, you are hereby notified
>that you are not authorized to review the contents of this email and
>that any dissemination, distribution or copying of this message is
>strictly prohibited.

Amelia A. Lewis                    amyzing {at} talsever.com
  Light is the left hand of darkness
  and darkness the right hand of light.
    Two are one, life and death, lying
    together like lovers in kemmer,
      like hands joined together,
      like the end and the way.
        -- Tormer's Lay [Ursula K. Le Guin, "The Left Hand of Darkness"]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS