![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: MSXML/UTF8 and special characters < 32 >Thread Next - Re: MSXML/UTF8 and special characters < 32 Re: MSXML/UTF8 and special characters < 32To: NULL Date: 8/2/2005 11:53:00 AM Hi, and if you want to preserve the exact data as you put in, you'll have to change the 'non allowed' characters into entities. (e.g. ) (Or like previously said, Base64 encode it) Hope this helps, Marvin Smit. On Mon, 01 Aug 2005 20:30:49 +0200, "Julian F. Reschke" <julian.reschke@n...> wrote: >dblock wrote: >> Thanks for your reply. >> >> I have a store that I don't control (MAPI) and generate XML in some >> schema. It encounters special characters (eg. 0x12). My question is: >> what should I do? >> >> a) Parse every single string and strip special characters? > >Yes. > >> b) Parse every single string and manually add CDATA whenever I see one >> of special characters? > >That won't help. The set of allowable characters inside CDATA is the same. > >> c) Something else? > >Depends on your requirements. If you have data that is binary in nature, >you may want to base64-encode it. If it's textual data, there's really >no compelling reason to have these control characters inside (what is >the 0x12 supposed to mean?). > >Best regards, Julian | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
