开发者

html charset that works with Japanese and English characters?

开发者 https://www.devze.com 2023-04-13 02:24 出处:网络
This is the first time I experienced this problem. For some reason when I use this <meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">

This is the first time I experienced this problem. For some reason when I use this

   <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

my dashes are replaced with â€, but japanese characters work fine. I开发者_如何学运维 remember using another charset and the situation was flipped (Japanese characters were replaced with nonsense characters)

Is there a general charset that fits all? I'm completely new to this idea.


Try using UTF-8. Note that just changing the charset in the header won't convert the content — you need to make sure that the content is actually UTF-8 as well.

0

精彩评论

暂无评论...
验证码 换一张
取 消