Store Arabic text in mysql database using php

后端 未结 4 1182
终归单人心
终归单人心 2020-12-17 05:00

I am trying to store some Arabic data in a mysql database I have set the html document charset to be \'utf8\'



        
4条回答
  •  佛祖请我去吃肉
    2020-12-17 06:00

    Browsers will ignore the tag if there is a http header present. Try putting this at the top of your php page:

    header("Content-Type: text/html; charset=UTF-8");
    

提交回复
热议问题