View Full Version : Foriegn Language Text Input
hi, all
This is my first post here, but not the first time here:) Anyway, I have a question about text input for foriegn languages such as Chinese and Japanese.
I am currently working on a flash guestbook and when I try to type Chinese in, things just kinda turn into random codes; but, if I copy&paste the chinese from somewhere else, it will look fine and show up fine after submitting. So, I'm wondering if there is a way to fix this so people can see exactly what they are typing and submitting.
Thanks in advance
Al
Ricod
02-20-2004, 05:57 AM
Hello A1, welcome to the boards !
I'm not sure here, but I think you need the following :
The machine needs to be able to handle multibyte characters. (for example win2k and up)
You need to have a font that displays these characters (eg MS Mincho)
Also, I have that problem too when the default locale is not set to (in my case) Japanese, but just to Dutch or something.
I don't know anything about other platforms, sorry.
Ricod,
thanks for the reply. My machines supports Chinese (XP) and I can type and read Chinese just fine. So, the problem is just Flash. I wasn't sure if I needed to embed any font or...?
Al
Abelius
02-21-2004, 12:31 PM
My World Kit Intro shows foregin characters (including Hebrew, Russian and others) correctly but I use UNICODE characters in my ActionScript files (.as files) in order to ensure it happens...
Check it out, and if you like it I can send you the code for it. I think I also posted a little program in here (actionscript.org) that lists all 30+ thousand Chinese characters in UNICODE, using a for loop in ActionScript...
And... welcome to the boards! :)
Abelius,
it would be really great if you could send me the code. my email is: donkeytra@hotmail.com
I will try to search for that program of yours here as well.
Thanks
Al
Abelius,
I've found your code, but I have no idea how to use it in my guestbook, a little help would be great.
x=0;
y = 0;
for (y = 0; y < 10; y++) {
for (x = 0; x < 10; x++) {
myChar = "0x4e" + y + x;
_root.myText_txt.text += String.fromCharCode(myChar) + " ";
}
_root.myText_txt.text += newline;
}
btw, I'm using php for mu guestbook, does that make any difference??
Al
CyanBlue
02-21-2004, 07:52 PM
Here is the link that Abelius were talking about...
http://www.actionscript.org/forums/showthread.php3?s=&threadid=14911
sneeuwitje
02-22-2004, 07:57 PM
I'm no php-expert but am currently exploring the possibillities and catches in utf8 encoding ... as much catches as possibilities so far ... |( ... you using that feature by any chance?
no, I don't have utf8 in my php script. Is that supposed to help??
Al
sneeuwitje
02-24-2004, 06:49 AM
plus as i said it's not free of trouble (for me that is ... as yet) ... i'm still exploring it myself, but not right now ... too busy.
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.