Text acentuation instability

I have set some text in my code to be displayed in a text box, showing which chapter the user has selected.
Like this:

cap01 = "TEORIA / Arte - Capítulo 1";

I don`t know what happens, but sometimes all the words with accents get mixed up with strange characters.

cap01 = "TEORIA / Arte - **Cap’tulo** 1";

This also happens with all the comments in the code.
[color=red]" í “[/color] is substituted by [color=blue]” ’ “[/color].
[color=red]” ó “[/color] is substituted by [color=blue]” - “[/color].
[color=red]” çã " [/color] is substituted by [color=blue]" =‹ "[/color].

Does someone know how to prevent this changes?

I know I could write the comments w/o accents, but I need the text, that will be displayed to users, with the right acentuation and characters.

:thumb:

When you load in text, you can load in chars from the list on the bottom of this:

http://www.macromedia.com/support/flash/ts/documents/url_encoding.htm

:slight_smile: excellent!!!
Thanks so much!
+++++

Another big, big problem.
I will have to use the URL encoding in tons of text.
What should I do to change so many letters to URL encoding?
Microsoft Word has a tool to replace words, but I dont think it will work to change specific letters.
Does anyone have a tip? :thumb:

No…I know of no way. I’m sorry. Maybe someone else does.

[AS]System.useCodepage=true;[/AS]

Put that at the beginning of your movie on a frame.

Read up on it here…

http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary723.html

It does sometimes slow your movie down, but it seems to be your only option.