Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: MSXML Save Method Questions [Thread Next] Re: MSXML Save Method QuestionsTo: NULL Date: 3/7/2006 10:41:00 PM Thanks for the information. Right, the problem is that UTF-8 will convert é
to double bytes instead, I need it to be single byte. I can't change the
encoding as my XML file will contain Chinese as well so it has to be UTF-8.
I spent lots of time to do research about this but still no luck, hope
someone can give me a solution here. Thanks all in advance.
"Anthony Jones" wrote:
> >The reason why I need to keep it as "& # x e 9" is that I
> >have another application need this file as an Input, that application can
> >only run correctly in "& # x e 9" form.
>
> Is this other application loading this file into an XML DOM?
> If not what is it using to parse the XML document?
>
> I don't think there is a way to convince MSXML to escape characters that do
> not need escaping.
>
> You might try changing the document encoding to "windows-1252" instead of
> the default UTF-8 :-
>
> oDOM.insertBefore oDOM.createProcessingInstruction("xml",
> "version=""1.0"" encoding=""windows-1252"""), oDOM.documentElement
>
> I suspect what your other application is objecting to is the UTF-8 encoding
> for é which will be a multi-byte encoding. Using windows-1252 will cause é
> to be encoded as a single byte with the value of E9.
>
> Anthony.
>
>
>
>
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
