Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: xml localization problem

From: "Rhn" <rhunita@-----.--->
To: NULL
Date: 10/4/2006 11:27:00 PM

Hi,

While saving the XML file I am using following processing instruction:
"version='1.0' encoding='UTF-8'"

Please suggest go I need to change this? Should I use
encoding="ISO-8859-1"??

Internally apart from this, I am maintaining another version number
which is written to the xml file as follows:
CComBSTR varVersion;
double m_dCurrentVer = 3.3;
hr = VarBstrFromR8(m_dCurrentVer, LOCALE_USER_DEFAULT,
LOCALE_NOUSEROVERRIDE, &varVersion);
CComVariant varNodeValue(varVersion);
hr = spVersionNode->put_nodeTypedValue(varNodeValue);

and while reading m_dCurrentVer (double value) from xml file it gives
an error when the locale is different. Please suggest.

Thank you,
Rhn

www.fruitfruit.com wrote:

> If you set encoding in preprocessing instruction, you'll not suffer such
> problem.



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