HTML - Arabic Support

后端 未结 8 2333
情书的邮戳
情书的邮戳 2020-11-27 03:15

i have a website in which i have to put some lines in Arabic.... how to do it...

where to get the Arabic text characters... how to make the page support Arabic...

8条回答
  •  爱一瞬间的悲伤
    2020-11-27 03:52

    You not only have to put the meta tag, telling that it is UTF-8 but really make the document UTF-8. You can do that with good editors (like notepad++) by converting them to "unicode" or "UTF-8 without BOM". Than you can simply use arabic characters

    As this page is UTF-8, here are some examples (I hope I don't write anything rude here): شغف

    If you use a server side scripting language make sure that it does not output the page in a different encoding. In PHP e.g. you can set it like this:

    header('Content-Type: text/html; charset=utf-8');
    

提交回复
热议问题