# Text acentuation instability

**URL:** <https://forum.kirupa.com/t/text-acentuation-instability/22738>\
**Category:** Uncategorized\
**Created:** [June 7, 2003, 10:05pm UTC](https://forum.kirupa.com/t/text-acentuation-instability/22738 "2003-06-07T22:05:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Felipe\_Bastos](https://avatars.discourse-cdn.com/v4/letter/f/f05b48/32.png) [@Felipe\_Bastos](https://forum.kirupa.com/u/Felipe_Bastos)\
**Post date:** [June 7, 2003, 10:05pm UTC](https://forum.kirupa.com/t/text-acentuation-instability/22738/1 "2003-06-07T22:05:42Z")

</div>

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

```auto
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.

```auto
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:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 7, 2003, 11:15pm UTC](https://forum.kirupa.com/t/text-acentuation-instability/22738/2 "2003-06-07T23:15:49Z")

</div>

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](http://www.macromedia.com/support/flash/ts/documents/url_encoding.htm)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 8, 2003, 1:09am UTC](https://forum.kirupa.com/t/text-acentuation-instability/22738/3 "2003-06-08T01:09:21Z")

</div>

🙂 excellent!!!  
Thanks so much!  
+++++

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 9, 2003, 1:03am UTC](https://forum.kirupa.com/t/text-acentuation-instability/22738/4 "2003-06-09T01:03:34Z")

</div>

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:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 9, 2003, 4:26am UTC](https://forum.kirupa.com/t/text-acentuation-instability/22738/5 "2003-06-09T04:26:26Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 9, 2003, 4:57pm UTC](https://forum.kirupa.com/t/text-acentuation-instability/22738/6 "2003-06-09T16:57:37Z")

</div>

[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](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.
