Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 06-26-2003, 02:50 AM   #1
QBA
Registered User
 
QBA's Avatar
 
Join Date: Dec 2001
Posts: 141
Default Foreign Characters

Hi

I have a flash file that is loading variables from an external .txt document into a Dynamic text field.

I'm having problems getting the Dynamic text field to display foreign characters. The characters displays fine on the text document but once they upload into flash they don't display properly or don't display at all.

In my dynamic text field I’m using Arial witch I know is capable to display all the foreign characters from the txt file. I tried using html font tags on the text file so it will be force to display Arial once loaded into Flash and didn't help either.

Any ideas what can I do to have the foreign characters display properly once being loaded into Flash MX?

Thanks

Alex
QBA is offline   Reply With Quote
Old 06-26-2003, 02:56 AM   #2
farafiro
Addicted To FLASH
 
farafiro's Avatar
 
Join Date: Dec 2001
Location: Egyptian in UAE
Posts: 12,436
Send a message via MSN to farafiro Send a message via Yahoo to farafiro
Default

attach this in the first frame
ActionScript Code:
System.useCodePage = true
__________________
â€* GOD Is Near â€*
Questions Don't PM for Questions . Thanks
An eye for an eye, make the whole world blind
_____________________________________________GHANDI
farafiro is offline   Reply With Quote
Old 06-26-2003, 03:08 AM   #3
littleRichard
Registered User
 
littleRichard's Avatar
 
Join Date: Feb 2003
Location: Florida
Posts: 289
Default

if you save the text file as a unicode file then you can just load it into flash normaly and everything will display properly.

setting "System.useCodePage = true" will cause the player to use the operating systems codepage which could cause certain charachters to display differently from one computer to the next.

unicode is the way to go.
littleRichard is offline   Reply With Quote
Old 06-26-2003, 03:24 AM   #4
QBA
Registered User
 
QBA's Avatar
 
Join Date: Dec 2001
Posts: 141
Default

Thanks guys,

littleRichard how can I save the txt file as unicode? is there a option when I go to save the txt file?

I saw it littleRichard should I choose unicode TM (UTF-16) or (UTF-8)? what is the diference bettween the two?

Last edited by QBA; 06-26-2003 at 03:35 AM.
QBA is offline   Reply With Quote
Old 06-26-2003, 03:39 AM   #5
littleRichard
Registered User
 
littleRichard's Avatar
 
Join Date: Feb 2003
Location: Florida
Posts: 289
Default

either one should work. you might also want to check out these links.

http://moock.org/asdg/technotes/againstUseCodePage/
http://moock.org/asdg/technotes/usingSpecialCharacters/
littleRichard is offline   Reply With Quote
Old 06-26-2003, 03:46 AM   #6
QBA
Registered User
 
QBA's Avatar
 
Join Date: Dec 2001
Posts: 141
Default

littleRichard I did what you said by saving the text files as undicode and now a least is diplaying some chatracters by not always the right ones is
QBA is offline   Reply With Quote
Old 06-26-2003, 03:49 AM   #7
QBA
Registered User
 
QBA's Avatar
 
Join Date: Dec 2001
Posts: 141
Default

I just tried what farafiro said and it works

littleRichard I will try to get what you said working since you think that the characters could display diferent from machine to machine
QBA is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:30 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.