0

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.

1
  • are you trying to put that string in a text field? What if you do a trace() on the string -- can you see the correct characters there? Commented Feb 26, 2010 at 2:01

2 Answers 2

3

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>
Sign up to request clarification or add additional context in comments.

2 Comments

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.
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.
1

Save the xml file in UNICODE format. No need for CDATA.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.