PDA

View Full Version : special characters in flash


ricosushi
10-31-2005, 04:25 PM
Hi i have this problem.

i am using flash to display data in a dinamic txt box from a MYSQL database. But characters like ñ or á, é, í, ó , ú doesnt display in the text box in flash.

I am using PHP to print the data like this:

...
$salida = "<font color=\"#000000\">" .mysql_result($myquery,$i,3). "</font><br>";

echo "texto=$salida";

then i load it into flash catching the value of texto.

i tried using htmlentities() in php but it didnt work.

:(

jsebrech
11-02-2005, 08:12 AM
Try doing utf8_decode instead of htmlentities.

ricosushi
11-04-2005, 07:30 PM
I tried this: $salida = utf8_decode($salida);

But it doesnt work it display acci?font?> where it should be acción.

jsebrech
11-05-2005, 10:30 AM
Well, you could try utf8_encode instead. But basically your output needs to be utf-8. That means you will have to save your php script as an utf-8 file (in notepad you can choose save as, and select unicode or utf-8 from a dropdown at the bottom).

ricosushi
11-10-2005, 07:12 PM
Ok i solved it.

Just to let you all know.
Use utf8_encode(); instead of utf8_decode();