edu de souza

edu de souza

  • NA
  • 115
  • 0

Encode problem

Aug 13 2008 12:51 PM
Hi guys, I´m experiencing a problem with xml and encode.

I believe I need to "force" the encode, the current code give me this:

Feliz até para comer

<%Response.Write((info_adic[11].InnerText).Split('$')[0]); %>

Here goes the code that reads the xml:

XmlDocument xDoc = new XmlDocument();
xDoc.LoadXml(responseFromServer);

XmlNodeList nome        = xDoc.GetElementsByTagName("no_visitante");
XmlNodeList cd_visit    = xDoc.GetElementsByTagName("cd_visitante");
XmlNodeList foto        = xDoc.GetElementsByTagName("cd_arquivo_enviado");
XmlNodeList info_adic   = xDoc.GetElementsByTagName("dc_infoadicional");
XmlNodeList media       = xDoc.GetElementsByTagName("media");
XmlNodeList votos       = xDoc.GetElementsByTagName("votos");
XmlNodeList codvoto     = xDoc.GetElementsByTagName("cd_arquivo");

How can I set the corret encode?
Do I have to decode?

Thanks



Answers (1)