[Expat-discuss] Query on UTF8 encoded data in a CDATA section.

Karl Waclawek karl at waclawek.net
Mon Nov 15 15:47:58 CET 2004


I think a correct CDATA section looks like this:
<![CDATA[..........]]> which is different from what you quoted below.
Could that be the reason?

Karl

----- Original Message ----- 
From: "Tony Ku" <Tony.Ku at reuters.com>
To: <expat-discuss at libexpat.org>
Sent: Sunday, November 14, 2004 7:43 PM
Subject: [Expat-discuss] Query on UTF8 encoded data in a CDATA section.


Hi Karl,
 
   I have an XML file in which there are some Japanese characters
encoded in UTF8 format inside a <!CDATA[[..........]]> section. However
I noticed if there is an opening bracket '[' as one of the leading bytes
in the UTF8 data, then the parser complains, saying it cannot find the
corresponding closing bracket. I thought everything inside the CDATA
section should be ignore? Wonder if you are able shed some light on
this. Thanks.
 
Regards,
Tony


-----------------------------------------------------------------
        Visit our Internet site at http://www.reuters.com

Get closer to the financial markets with Reuters Messaging - for more
information and to register, visit http://www.reuters.com/messaging

Any views expressed in this message are those of  the  individual
sender,  except  where  the sender specifically states them to be
the views of Reuters Ltd.

_______________________________________________
Expat-discuss mailing list
Expat-discuss at libexpat.org
http://mail.libexpat.org/mailman/listinfo/expat-discuss



More information about the Expat-discuss mailing list