Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML Arabic text

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?

like image 324
Zebra Avatar asked Jun 16 '26 20:06

Zebra


2 Answers

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.

like image 110
Thariama Avatar answered Jun 19 '26 08:06

Thariama


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.

like image 21
BalusC Avatar answered Jun 19 '26 10:06

BalusC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!