Max Bowsher wrote: > pmkwan wrote: > >> Thanks for the prompt reply. Since I'm using java, and my database is MySQL, >> do you know what I should use to output this character (Unicode: 0x1e) >> correctly within the CDATA section? >> >> If there's no easy solution, does that mean I have to filter out these funky >> characters before outputting them in the CDATA section? >> > > The unicode character 0x1e is forbidden outright from appearing in an > XML document. There is no way to represent it within XML. > except encode it in a way that makes it safe for XML such as BASE64 encode the output and you can put even binary inside XML - for example see how ATOM content uses Base64 encoding http://atompub.org/rfc4287.html#rfc.section.4.1.3.3
best, Alek > (Personally, this seems like a rather unnecessary limitation to me, but > that's how part of how XML is defined.) > > If transport of arbitrary data is your goal, perhaps something other > than XML would fit your design criteria better. > > Max. > > > -- The best way to predict the future is to invent it - Alan Kay --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]