I am new in html programming . I want to add the arabic text in the my html file . I added the following line with arabic text:
<h1 dir="rtl">نص تجريبي لاختبار</h1>
But in output i am getting some unexpected output like :
عظ� ظ�ظ،ظ�عظ�ع عظ�ظ�ظ�ظ�ظ�ظ�
I dont understand why this is happening . Or do need to add some extra code for arabic ?
I think is caused by the character set you used in you HTML file. Check out the wiki page about charset
http://en.wikipedia.org/wiki/Character_encodings_in_HTML
And, this problem can also be caused by using a different charset in your text editor from your HTML charset.
For non-ascii chars, I recommend to use UTF-8 as the charset. So you can add this line into your HTML file. in the <head> tag.