I have a Windows Forms application that is consuming a WebService that returns an xml (string) with ISO-8859-1 enconding.
However, the answer comes with question marks (?) instead of accents.
How do I convert or read to ISO-8859-1, so that the accent comes correctly?
Code:
string empresa = "loginEmpresa";
string token = "tZTMMnOO+oZZmlwhSRuFbQ==";
string xmlPublicacoes = "";
br.com.dominio.portal.IIFServiceservice webService = new br.com.dominio.portal.IIFServiceservice();
xmlPublicacoes = webService.ObterPublicacoesPorGrupo(empresa, token, 3997, "01/12/2015");
MessageBox.Show(xmlPublicacoes); //Aqui o texto com erro de encoding
XML Return: