How to save Arabic in MySql database?
author
,
Aspirant Programmer

Could you please let me know the way to save Arabic content or string in MySql database. I have tried but it saves in ????? ( question marks )  format.

  • Total 1 Answer
  • 398
Can You answer this question?
author
,
A guide

To save an Arabic text into your MySql database table, you first check the table column is set to "utf8" or not. If not, switch to table structure tab of phpmyadmin and click change under action column, here you will see a column "Collation" and choose "utf8_general_ci" from utf8 group and save.

Now if you will save any Arabic string in this column it will save properly as it should be. Please refer to below screenshot for your better understanding:

 

 

Again make sure that collation will be "utf8" and "utf8_general_ci" of the column you want to save an Arabic text into.