[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: UTF-8 encoding problem for euro symbol

  • From: "Michael Kay" <mike@saxonica.com>
  • To: "'Trehan.Pankaj'" <Pankaj.Trehan@IGT.com>,<xml-dev@l...>
  • Date: Sun, 23 Aug 2009 17:58:08 +0100

RE:  UTF-8 encoding problem for euro symbol

I believe that x80 is the code representing the Euro symbol in Microsoft code page 1252. So although you say you are using UTF-8 encoding, it seems you are actually using CP1252.
 
Either change the C++ program to use the correct Unicode codepoint for the Euro symbol, or tell the XML parser (by means of an XML declaration) that you are using CP1252.
 

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay



From: Trehan.Pankaj [mailto:Pankaj.Trehan@IGT.com]
Sent: 23 August 2009 02:38
To: xml-dev@lists.xml.org
Subject: UTF-8 encoding problem for euro symbol

Hi All,

 

We are facing problem encoding euro (€) symbol in XML body.

We are using UTF-8 encoding and not sure what might be wrong.

 

Here is the flow of our program:

 

1)      C++ string is getting formatted with different currency symbols.

2)      Above string is getting passed to XML parser.

During XML encoding we are getting the error.

 

I see hex value of “0x80” in the string for the euro symbol instead of “0xC2 80”.  Is this the problem? What can we do to correct it?

 

I will really appreciate if someone can help us in this or give us pointers.

 

We are seeing this problem on XP.

 

Regards

Pankaj Trehan
International Game Technology
9295 Prototype Drive
Reno, NV 89521
(775) 448-2464

 



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.