2

How do you use search a MySQL database with Tamil fonts and retrieve and display the data using PHP?

Ashwin Balamohan
  • 3,303
  • 2
  • 25
  • 47
Rekha
  • 449
  • 2
  • 15
  • 27

4 Answers4

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.

Multiple Language Support - Mysql

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

marapet
  • 54,856
  • 12
  • 170
  • 184
Jay Mayu
  • 17,023
  • 32
  • 114
  • 148
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