html charset that works with Japanese and English

2019-09-19 05:17发布

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.

1条回答
姐就是有狂的资本
2楼-- · 2019-09-19 05:38

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.

查看更多
登录 后发表回答