[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: UTF-8 encoding problem for euro symbol
At 2009-08-22 18:37 -0700, Trehan.Pankaj wrote: >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? My mailer cannot handle the text as you have entered it, so I cannot see what characters you are using. The euro symbol is U+20ac which is encoded in UTF-8 in three characters: E2 82 AC >I will really appreciate if someone can help us in this or give us pointers. > >We are seeing this problem on XP. Instead of using UTF-8 can you simply use a numeric character reference? The price is €30,00 ... will give you the following Unicode in your application: The price is 30,00 I hope this helps. . . . . . . . . . . . Ken -- Interested in these classes? http://www.CraneSoftwrights.com/x/i/ Crane Softwrights Ltd. http://www.CraneSoftwrights.com/x/ Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video Video lesson: http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18 Video overview: http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18 G. Ken Holman mailto:gkholman@CraneSoftwrights.com Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/x/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
[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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|