# Portuguese Characteres í, ã, õ, é , etc

**URL:** <https://forum.kirupa.com/t/portuguese-characteres-i-a-o-e-etc/24782>\
**Category:** Uncategorized\
**Created:** [July 4, 2003, 6:28pm UTC](https://forum.kirupa.com/t/portuguese-characteres-i-a-o-e-etc/24782 "2003-07-04T18:28:49Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![grooove](https://avatars.discourse-cdn.com/v4/letter/g/7feea3/32.png) [@grooove](https://forum.kirupa.com/u/grooove)\
**Post date:** [July 4, 2003, 6:28pm UTC](https://forum.kirupa.com/t/portuguese-characteres-i-a-o-e-etc/24782/1 "2003-07-04T18:28:49Z")

</div>

Hi!

I have an external txt file, loading to a dynamic field in flash, well, this is a portuguese site and the text has some characteres like this: ã, á, õ, è, ô, etc…

this characteres doesn´t appear in the exported movie…

can you help with this?

thnx

gr000ve

---

<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:** [July 4, 2003, 6:37pm UTC](https://forum.kirupa.com/t/portuguese-characteres-i-a-o-e-etc/24782/2 "2003-07-04T18:37:03Z")

</div>

ok… got it

this is the code:  
System.useCodePage = true;

gr000ve

---

<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:** [July 4, 2003, 7:01pm UTC](https://forum.kirupa.com/t/portuguese-characteres-i-a-o-e-etc/24782/3 "2003-07-04T19:01:49Z")

</div>

Want my advice, save your textfile as unicode instead of using System.useCodePage.

Reason: [[link]](http://moock.org/asdg/technotes/againstUseCodePage)

---

<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:** [July 4, 2003, 8:10pm UTC](https://forum.kirupa.com/t/portuguese-characteres-i-a-o-e-etc/24782/4 "2003-07-04T20:10:23Z")

</div>

this is interesting… how can i save the txt file as unicode?

---

<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:** [July 4, 2003, 8:11pm UTC](https://forum.kirupa.com/t/portuguese-characteres-i-a-o-e-etc/24782/5 "2003-07-04T20:11:26Z")

</div>

Running windows XP? You simply can choose the option of saving as unicode at the save window in notepad.

---

<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:** [July 4, 2003, 8:27pm UTC](https://forum.kirupa.com/t/portuguese-characteres-i-a-o-e-etc/24782/6 "2003-07-04T20:27:47Z")

</div>

I don’t think you can do that with external textfiles, I thought you could only do that with UTF-8 encoded XML.

I thought you had to encode characters other that the Western alphabet, numbers and spaces with %. For example, spaces are %20 with this method.

If you want to find out the url-encoded value of a letter in a different language, you can use this AS

[AS]  
trace(encode(valuetoencode));  
[/AS]

---

<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:** [July 4, 2003, 8:30pm UTC](https://forum.kirupa.com/t/portuguese-characteres-i-a-o-e-etc/24782/7 "2003-07-04T20:30:15Z")

</div>

njs: Try saving any textfile that contains Western alphabet as unicode, and then load it into flash, it will work, and yes the encode thing is another alternative.

---

<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:** [July 4, 2003, 8:44pm UTC](https://forum.kirupa.com/t/portuguese-characteres-i-a-o-e-etc/24782/8 "2003-07-04T20:44:09Z")

</div>

Hmm, I just tested it. It works with some accented characters (Ã©, for example) but doesn’t work with the more obscure ones (I tested it with arabic and it just showed ‘?’). It depends really on how safe you want to be. All characters, as long as you have the font, will show if you URL-encode the characters.

That’s another thing to check. Does the font you’re using have the characters you’re trying to display?

---

<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:** [July 5, 2003, 5:49pm UTC](https://forum.kirupa.com/t/portuguese-characteres-i-a-o-e-etc/24782/9 "2003-07-05T17:49:03Z")

</div>

hi!!

i´ve saved the txt file as unicode, and removed the System.useCodePage = true; from the AS pane and all the characteres are displayed perfectly

thnx a lot h88 and njs12345

gr000ve

---

<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:** [July 5, 2003, 6:02pm UTC](https://forum.kirupa.com/t/portuguese-characteres-i-a-o-e-etc/24782/10 "2003-07-05T18:02:24Z")

</div>

ok… one more thing

when i publish the swf i can see the txt file, but in the browser the txt doesn´t appear!!! any tip?

---

<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:** [July 5, 2003, 9:51pm UTC](https://forum.kirupa.com/t/portuguese-characteres-i-a-o-e-etc/24782/11 "2003-07-05T21:51:23Z")

</div>

groove: Be sure to match the cases of the folders with flash, if that doesn’t work, then try load the absolute path of the textfile.
