可以使用日语和英语字符的html字符集? [英] html charset that works with Japanese and English characters?

查看:115
本文介绍了可以使用日语和英语字符的html字符集?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我第一次遇到此问题。出于某些原因,当我使用

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.

推荐答案

尝试使用UTF-8。请注意,仅更改标头中的字符集不会转换内容-您需要确保内容实际上也是UTF-8。

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.

这篇关于可以使用日语和英语字符的html字符集?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆