PDA

View Full Version : Russian in TextArea



comicGeek
October 14th, 2004, 11:17 PM
Hello all,

Please help. How can I make my form textareas accept Russian texts? I made some forms for a Russian site I'm doing and the comment were "when I type I get funny looking characters and ? question marks instead of the Russian text!". Can someone please help me? I've been trying for a week now but cant seem to make it work! :sigh:

Thanks.

comicGeek

teiz77
October 15th, 2004, 08:56 AM
Hello all,

Please help. How can I make my form textareas accept Russian texts? I made some forms for a Russian site I'm doing and the comment were "when I type I get funny looking characters and ? question marks instead of the Russian text!". Can someone please help me? I've been trying for a week now but cant seem to make it work! :sigh:

Thanks.

comicGeek

I think you must the characterset of the page to russian...

<meta http-equiv="Content-Type" content="text/html; charset=ISO 8859-5
" />
Try to put/replace this in the head of your page.

λ
October 15th, 2004, 01:39 PM
I think you must the characterset of the page to russian...

<meta http-equiv="Content-Type" content="text/html; charset=ISO 8859-5
" />
Try to put/replace this in the head of your page.

You might need to use UTF-8


<meta http-equiv="Content-Type" content="text/html; charset=utf-8
" />

comicGeek
October 16th, 2004, 02:53 AM
Thanks all... I did try UTF-8 but instead of russian text appearing i get squares and other wierd character appearing in flash. Here is what I was trying to do: I made a cms in php and have another php file retrieve the data from the database to display into Flash.

I don't know what to do anymore.

λ
October 16th, 2004, 10:48 AM
Thanks all... I did try UTF-8 but instead of russian text appearing i get squares and other wierd character appearing in flash. Here is what I was trying to do: I made a cms in php and have another php file retrieve the data from the database to display into Flash.

I don't know what to do anymore.

Perhaps the PHP file is encoding the characters wrongly? Try this in the PHP file:


//where $str is string received from database
$str = mb_convert_encoding ($str, "utf-8", "ISO-8859-5");


If that doesn't work then try saving your php file as a .html file and attaching it, and I'll try and find out what encoding the page is in :)

comicGeek
October 16th, 2004, 11:27 PM
Thanks NJS. I didn't quite get you by 'attaching it'. What do you mean by attaching it? Thanks. I will try the mb thing. Thanks.

λ
October 17th, 2004, 05:43 AM
Thanks NJS. I didn't quite get you by 'attaching it'. What do you mean by attaching it? Thanks. I will try the mb thing. Thanks.

Well, save a page that has strange characters instead of Russian, and attach it to a post. I know a few ways to try and find out what character encoding is being used and what character encoding the text is in ;)

comicGeek
October 17th, 2004, 02:55 PM
Hello NJS. Just managed to locate the BIG difference "ISO 8859-5" is very different with "ISO-8859-5". Also I didn't realize that MultiByte requires you to install that module for PHP. hehehe. I managed to install it in my machine though. Well anyway ISO 8859-5 produces characters with dots at the top (I think it's cyrillic). Using "ISO-8859-5" produces russian text. But I haven't tested this with a russian computer.

comicGeek
October 20th, 2004, 01:34 AM
поздравляю с началом работы сайта. It's beautiful! ждем новостей. пока

Those are the characters that appears. That is the text inputed in a Flash form and then sent as html email.

comicGeek
October 20th, 2004, 03:28 AM
Here is the text that will appear when the email is received

аћаН аГаОаДбѓ аПаОббб ббаО, баОаН аВаО аБббЃббЂаО бѓбаАбЃбаКаИ аНаАаЙаДаЕаНаНбб

I don't know how this can be displayed in correct russian text. :(