What character encoding should I use for a web page containing mostly Arabic text? Is utf-8 okay?

前端 未结 5 965
孤独总比滥情好
孤独总比滥情好 2020-11-28 13:55

What character encoding should I use for a web page containing mostly Arabic text?

Is utf-8 okay?

5条回答
  •  孤街浪徒
    2020-11-28 14:08

    UTF-8 often takes more space than an encoding made for one or a few languages. Latin letters with diacritics and characters from other alphabetic scripts typically take one byte per character in the appropriate multi-byte encoding but take two in UTF-8. East Asian scripts generally have two bytes per character in their multi-byte encodings yet take three bytes per character in UTF-8.

提交回复
热议问题