Prezados,
Tenho um loop de notícias que carrega os textos de um arquivo .txt
ESTOU USANDO O FLASH CS6 COM ACTION SCRIPT 1.0
Quando executo o swf, mostra a acentuação correta. Quando executo no Browser, a acentuação aparece códigos estranhos.
segue o código:
//Declarando a variável
var t1
var n1
var t2
var n2
var t3
var n3
var t4
var n4
var t5
var n5
var t6
var n6
//Buscando o texto contido no arquivo info.txt
System.useCodepage = true;
var texto:LoadVars = new LoadVars();
texto.load("n.txt");
texto.onLoad = function(){
t1 = texto.t1;
n1 = texto.n1;
t2 = texto.t2;
n2 = texto.n2;
t3 = texto.t3;
n3 = texto.n3;
t4 = texto.t4;
n4 = texto.n4;
t5 = texto.t5;
n5 = texto.n5;
t6 = texto.t6;
n6 = texto.n6;
}
SEGUE OS DADOS DO TXT
Segue os dados do TXT
&t1=teste 1&
&n1=É Á Ç ATENÇÃO&
&t2= sgsg sd&
&n2=sg gás ds gás gd&
&t3= gs gsgfddf&
&n3=hg dcd hdf hdf phd hdf.&
&t4=dh df hdd fh&
&n4=dh d fd her er yerye &
&t5=g hd hfh doh &
&n5=dh dfhd hfdh df&
&t6=hd hirer rah &
&n6=vhdfstwtwttreterter&