Search code examples
mysqllocale

How to store gujarati data into mysql server?


I want to execute one functionality in which i have to upload an excel sheet having data in gujarati font and after uploading i have to store that data into mysql database.

Now here i have to use two languages for displaying output - one is english and one is gujarati.

Somewhere i have to display mysql db data in english and somewhere in gujarati.

Now i need suggestion that how could i implement such functionality?

Should i change mysql server locale to gujarati or should i keep the mysql server in english locale and convert the data from gujarati to eng or eng to gujarati at frontend.

Please suggest something.


Solution

  • You should Change the field's collation to utf8_bin so that MySQL will stores the data in gujarati and in english properly.