Altova Mailing List Archives

Re: xml encoding

From: "Julian F. Reschke" <julian.reschke@-----------------.-->
Date: 1/22/2004 10:54:00 AM
Neet wrote:

> Hi,
> The third party API that i am trying to integrate with requires that the xml file they send me and i read and send back matches with what they sent me. If viewed as a string the files are identical. The encoding i am using is ISO-8859-1 which is what they mention in their documentation. The problem arises in the French text in the document. The document they send me displays the encoding for the e acute symbol for a french word as <e9>, while the xml i send back to them, for the same symbol, displays the encoding as <c3><a9>. Hence even though we are using the same encoding method and the result string is identical the encoded xml is different in both the cases and they send me back an error response.
> Is there anyway i can view what the encoded text looks like in xml or how i can change it to satisfy the third party API?

Note that what you're sending is indeed UTF-8, not ISO-8859-1. If the 
recipient wants ISO-8859-1 (IMHO it's a broken design to require a 
specific encoding, in particular if it's not an XML standard encoding), 
then just instruct the XML serializer to generate ISO (most serializers 
allow to specify the output encoding).



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 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.