Returning UTF-8 from a web service
Posted
by
Marco Shaw
on Stack Overflow
See other posts from Stack Overflow
or by Marco Shaw
Published on 2010-12-24T01:38:34Z
Indexed on
2010/12/24
1:54 UTC
Read the original article
Hit count: 571
Xml
|web-services
Previous: Returning info from a Web Service
I thought the previous answer made 100% sense, and I though I was out of the woods, but it still fails.
An app I'm working with still seems to think what is being returned from the web service is ASCII encoded. Debugging it shows:
<Envelope><Body><ReturnOneResponse><ReturnOneResult><xml version="1.0" encoding="UTF-8"><Entry><Symbol>PACR</Symbol><Company>Pacer International, Inc.</Company><MarketCap>$229.0M</MarketCap><PE>18.7</PE><Price>6.56</Price><Change>0.42</Change><PctChange>6.84%</PctChange><YTDChange>107.59%</YTDChange></Entry></ReturnOneResult></ReturnOneResponse></Body></Envelope>
So everything being returned from the web service seems to be changed into ASCII, and seems to refuse to read as UTF-8.
Since my previous code in the above link, I also changed my string invocation: string value = @"";
Still, that didn't help.
Any other ideas?
© Stack Overflow or respective owner