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(\"إضافة\");
إضاÙØ©
Well,
First: Add by the beginning of HTML page
second: if you are using AJAX encode data using encodeURIComponent
Third: First line of your PHP page should be
header('Content-Type: text/html; charset=utf-8');
and decode the data sent to PHP using urldecode
Regards,