Page 1 of 1

Input box problem

Posted: Wed May 03, 2006 8:19 am
by namitjung
Hello All,

Is it possible to use other language other than english in an input box. I mean to say can we make an input box to accpet a chinesee character.Normally if we type a charater an input box will display that charcter in english(eg.a,b,c,e).But what if we have to enter a chinesee character?

This question is not directly related with php. Since i am developing application in php i am posting it here. Any url,comments,references are greatly welcomed and appreciated.
Thank You.

Posted: Wed May 03, 2006 8:33 am
by Oren
Why not? It should work just fine.

How can we enable it under windows?

Posted: Wed May 03, 2006 9:04 am
by namitjung
thanx for your quick respond. But i am wondering how can i enable it under windows?

Posted: Wed May 03, 2006 9:08 am
by Charles256
you are talking about an input box on a webpage right? It may not show on your scfreen because you probably don't have the charecter set installed. Grab your windows disk and install the charecter set, problem solved. :)

Posted: Wed May 03, 2006 9:18 am
by namitjung
Here is the problem i couldn't solve..


I want to develop and php application which should support multilanguage like phpmyadmin. I found that Phpmyadmin is using language files to use multilanguage.But i want to enable multilanguage from database..Since i know english language only, i cannot add all languages... So my application would enable user to input their appropriate language and it will store it on database.while displaying it will use that character..

eg.

Home :
Contact Us :
About Us:

here instead of "home" user should type home in their languae. If user is chinese he/she should able to enter the "home" in chinese character.....in an input box.

Do i have to make any special setting in databas too?

thanx

Posted: Wed May 03, 2006 9:43 am
by feyd
As long as your pages are set to use UTF-8 or any of the other similar encodings many things will work on their own (they'll show in whatever language they were written in.) Setting the database to use UTF-8 helps too, but sometimes isn't required. Using language files instead of storing it in a database is often done. The information is fairly static once it's been translated so the added database hit is often seen as an unnecessary overhead.