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 <
It might be necessary to indicate to the browser which charset you are using -- I'm guessing it's UTF-8.
IN order to achive that, you might try putting this portion of code at the beginning of your script, before any output is generated :
header('Content-type: text/html; charset=UTF-8');
[
utf8_decode][1]
will try to decode your string from UTF-8 to latin1, which is not suited for Arabic characters -- hence the '?'
characters.