HTML Arabic text

前端 未结 2 369
灰色年华
灰色年华 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 04:49

    Problem will be here that your browser is not capable due to a necessary font or character table which is not being used. Have a look at this testpage in order to find out if your browser is capable of displaying arabic characters with its actual setting.

    This page covers the necessary browser settings to display arabic characters.

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题