I have used the following in php and it might help you.
I have used the following meta tag in the <head> section.
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=windows-1256">
and used face='Persian Web' for which I want to show in Arabic/Persian.
Arun Kumar form India.
B-259, Vaishali Nagar,