Hola,

Estoy haciendo una aplicacion en flash que carga noticias desde un XML
alojado en un servidor.

Los textos cargados desde el XML me guardan el formato HTML (negritas,
cursivas...) pero los acentos y apóstrofes no me los carga correctamente.

He consultado el foro y investigado sobre el CDATA y resulta que le texto a
cargar ya viene  con ese formato y con encoding="UTF-8".

Tambien utilizo HtmlText en flash.

Os pongo el código que utilizo en el archivo FLA :


System.useCodepage = true;

var noticies_RSS:XML;

noticies_RSS = new XML();

noticies_RSS.ignoreWhite = true;

noticies_RSS.load("freud.xml");

noticies_RSS.onLoad = function(){
 total_noticies = noticies_RSS.firstChild.childNodes[0].childNodes.length;
 traçar();
}

function traçar(){
 txt_text.html = true;
 txt_text.htmlText =
noticies_RSS.firstChild.childNodes[0].childNodes[11].childNodes[8].childNodes[0].nodeValue;
}



A ver si alguien puede ayudarme.

Gracias
-----------------------------------------------------
ASNativos
www.5dms.com
subscripciones/desubscripciones
http://asnativos.5dms.com
-----------------------------------------------------

Responder a