Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: MSXML Save Method Questions

From: mckkwan@-----------.---------.---
To: 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.
> 
> 
> 
> 


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent