1
I’m consuming a Webservice, where the return is an XML.
Save XML in a directory for another system to read. How do I save this XML as UTF-8? The other system read the content but the special character is disfigured.
WSHP.XMLServer ws = new WSHP.XMLServer();
var xml = GerarXMLConsulta();
string login = "12000";
string senha = "4329";
var ret = ws.getResultado(login, senha, xml);
using (StreamWriter myWriter = new StreamWriter("D:\\downloads\\Retorno.xml"))
{
myWriter.Write(ret);
}
show an example
– Leandro Angelo