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?
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.
2.1m questions
2.1m answers
60 comments
57.0k users