HTML Arabic text

前端 未结 2 456
灰色年华
灰色年华 2021-01-20 04:15

I have some Arabic text that needs to be displayed in my php file - but the characters are not recognized.

How do I create a document with Arabic support?

2条回答
  •  既然无缘
    2021-01-20 05:13

    Ensure that you're using UTF-8 charset all the way. UTF-8 supports all characters the world is aware of. Save the PHP file as UTF-8. Set the DB table charset to UTF-8. Set the DB connection charset to UTF-8. Set the HTTP response header charset to UTF-8. See also PHP UTF-8 cheatsheet.

提交回复
热议问题