1

I am making a website in Hindi. I have changed the collation of database utf8_common_ci. When i am inserted text using form it should look like

आपकी उमà¥à¤° कà¥à¤¯à¤¾ है?

and after retrieving it looks as I want like आपकी उम्र क्या है?. But the problem is that I want to insert directly in the database in MySQL table because I have a static table and on the basis of id I have created some result but these look like

???? ??? ?????????? ???? ??? ???? ???? ????? ??? ??????? ???? ???

So how to insert आपकी उम्र क्या है? in the database directly.

enter image description here

Tharif
  • 13,794
  • 9
  • 55
  • 77

2 Answers2

1

You can store hindi language content direct to MySQL by changing table's particular column Collation type to utf8_general_ci.

Jazzzzzz
  • 1,593
  • 15
  • 16
0

You need to follow some steps of unicode using,MySQL database set up to handle UTF-8 data front to back

here is step by step unicode example for mysql you can use follow it

http://kunststube.net/frontback/

Zaynul Abadin Tuhin
  • 31,407
  • 5
  • 33
  • 63