When I try and execute this code to print out an Arabic string: print("إضافة"); I get this output: Ø¥Ø¶Ø§ÙØ©. If I utf8_decode() it I’ll get ?????. I have “AddLanguage ar” in my apache configuration but it doesn’t help. How do i print out this Arabic string?
When I try and execute this code to print out an Arabic string: print(إضافة);
Share
Also set your page language to utf8 eg:
and then see it if worked. If that still doesn’t work, go and check this out, it is complete solution for the arabic language using PHP:
http://www.ar-php.org/en_index_php_arabic.html
You may want to check out this too:
http://www.phpclasses.org/browse/package/2875.html