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 <
print(\"إضافة\");
Ø¥Ø¶Ø§ÙØ©
You may want to set
default_charset = "utf-8"
in your php.ini. Default charset directive instructs the server to produce correct content type header.
php.ini
You can also do it in runtime:
ini_set('default_charset', 'utf-8');