How do you use search a MySQL database with Tamil fonts and retrieve and display the data using PHP?
Asked
Active
Viewed 2,564 times
2
-
Have to be more specific, please. – egrunin May 29 '10 at 15:29
-
Neither PHP nor MySQL have a GUI, and neither of them uses fonts. Your question then does not make sense. Are you asking about character sets instead? – Edgar Bonet Oct 16 '10 at 19:42
4 Answers
1
Tamil characters are part of the Unicode spec and have been supported for years. Have you tried making a php page which takes Tamil input and stores it into the database?
If it didn't work, post your code.

egrunin
- 24,650
- 8
- 50
- 93
-
I am in search of the code.If you have some example code pls post here.I will try whether it works or not. – Rekha May 29 '10 at 07:10
1
You should use the unicode character setup (utf8) to support multiple languages in mysql. Take a look at the example below.

Paulraj
- 3,373
- 3
- 36
- 40
1
You need to use UTF-8 as the encoding for your MySQL DB. This allows you to later retrieve and store data to the MySQL database as you usually would.
For UTF8 Tamil input, I'd suggest you the following resources
- Google Transliterate: http://www.google.com/transliterate/tamil
- NHM Writer
- E-kalappai
0
Rekha, are your MySQL database and your PHP file encoded in UTF8?
If so, just query the DB with a string that contains Tamil characters the same way you would with any other string.

Ashwin Balamohan
- 3,303
- 2
- 25
- 47