I'm consuming a Webservice, where return is an XML.
Save The XML in a directory to another system read. how do I save this XML as UTF-8? The other system read the content but the special character is unconfigured.
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);
}