Input box problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
namitjung
Forum Commoner
Posts: 42
Joined: Mon Jun 20, 2005 3:17 am

Input box problem

Post 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.
User avatar
Oren
DevNet Resident
Posts: 1640
Joined: Fri Apr 07, 2006 5:13 am
Location: Israel

Post by Oren »

Why not? It should work just fine.
namitjung
Forum Commoner
Posts: 42
Joined: Mon Jun 20, 2005 3:17 am

How can we enable it under windows?

Post by namitjung »

thanx for your quick respond. But i am wondering how can i enable it under windows?
Charles256
DevNet Resident
Posts: 1375
Joined: Fri Sep 16, 2005 9:06 pm

Post 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. :)
namitjung
Forum Commoner
Posts: 42
Joined: Mon Jun 20, 2005 3:17 am

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
Post Reply