views:

362

answers:

1

Hi

When I load an XML using ActionScript all the characters inside strings render fine except special characters like:

ñ, Ñ, á, é, í, ó, ú

In that cases the letter is omitted.

I even try with:


ñ or í

But in that case show exactly ñ and í instead of ñ or í.

¿What can I do?

Thanks.

+3  A: 

Make sure your file is UTF encoded and then embed those additional characters in your TextField. Also, make sure the font you are using supports those characters. While you're at it, wrap your text values in <![CDATA[]]> (character data) in the XML file, e.g.

<textNode><![CDATA[ñ, Ñ, á, é, í, ó, ú]]></textNode>
Typeoneerror
+1. I suspect the problem is with the character embedding.
sberry2A
Hi, I Try but nothing, I embed all the characters and the trace works fine. Do you have any tutorial or example of a working fine code to compare?Thanks.
Deryck
Go to the embed settings of the textfield and select "Latin I" as the character embedding options. you can also just paste the characters you want to embed in the "additional characters" field. Try also pasting the characters into a textfield with that font to make sure they actually show up.
Typeoneerror
+1 for CDATA forget about the rest
just_a_dude