how to use php mysql with arabic data

“how to use php mysql with arabic data” is question of basic mysql structure.

Basically for handling  such characters wheather they are in arabic language or in other one , we have to change the default behaviour of PHP/MYSQL .

And we can do that by enabling ‘utf-8’ charset in mysql  .

In Mysql change the default Collation “latin1_swedish_ci” to “utf8_general_ci”

Or

Change the particular Column’s collation to “utf8_general_ci”.

Note:-There are lots of PHP Framework which by default provide the UTF-8 Support, If you just think creating your project in arabic than you can choose any standard PHP framework also like –

Laravel

Codeigniter

YII

CakePHP

and so on ….

Check it also

Leave a Reply

Your email address will not be published. Required fields are marked *