PDA

View Full Version : truble with escape()



Dulcinea
July 1st, 2005, 09:47 PM
I have a xml file encoded with the flash "escape" function
(here http://www.fotosnostalgicas.smartworks.com.mx/prueba/tagboard.xml)
there is no problem because I read it in flash and I can unescape it there.
but when I read it in a html document and try to unescape it with javascript it doesn't works...
looks like the encoding of flash and javascript are diferent
you can see this string has been "escaped" with flash:

qu%C3%A9%20sucede%20con%20ustedes%20%C3%91%C3%91%C 3%91%C3%91%C3%91%C3%91%C3%91//var men = "qu%C3%A9%20sucede%20con%20ustedes%20%C3%91%C3%91%C 3%91%C3%91%C3%91%C3%91%C3%91
and this with javascript:

qu%E9%20sucede%20con%20ustedes%20%D1%D1%D1%D1%D1%D 1%D1%D1
is the same message but looks diferent.
¿how can I do to read the encoding of flash in html?
¿maybe I have to use php?

fathed
December 9th, 2005, 09:05 PM
I am trying to figure out how to read it in flash with the encode(). how do you do that. I am parsing an XML file that has %20 instead of a space and I want it to read as a space in flash.