Showing posts with label Hindi support. Show all posts
Showing posts with label Hindi support. Show all posts

Jul 1, 2017

How to support Hindi in php mysql database

       
       Hello friends, just today I got a requirement of adding Hindi support to the MySQL database which was till now completely in English. Well, i had worked on many Hindi data before too but this time is the first time I was the getting error while adding the Hindi text. I tried to add the Hindi text via Android and retrofit but in the database in place of Hindi text only ?????? were added and ya I laughed for a movement on that. 

    So I had to add Hindi text in the database so that it can be added, retrieved and also displayed in Android. I looked around the internet and there were like many many methods of achieving same. But I wanted something that is simplest, easiest and fastest for my work. The expected outcome for me was something like this:




I achieved it with just one line of SQL code so let's see what it was and how it worked!