I'm working with XML. I'm received an XML like this:
<ajax-response>
<response>
<item>
<number></number>
<xxx>N?o ok</xxx>
<error>null</error>
</item>
</response>
</ajax-response>
on xxx value is "não ok",but how I convert from "N?o ok" to "Não ok"?
I know that the codification is utf8(1252) but how set this in output xml?
I tryed setting in request:
client.Encoding = Encoding.UTF8;
but does not works. Thanks in advance!
Try setting the encoding to the encoding from the code page 1252. The example below uses a simple service to serve the file, and setting the encoding to UTF-8 shows the same problem you have; setting it to the correct encoding works.