我写的文字与网站上显示的文字不符。 例如,这是文字;
<h1 class="title2"> Get food fast - not fast food.</h1>
<p class="title2"> Hello, we’re Omnifood, your new premium food delivery service. We know you’re always busy. No time for cooking. So let us take care of that, we’re really good at it, we promise!</p>
这是显示的文字;
您好,我们是Omnifood,这是您的新优质送餐服务。我们知道您一直很忙。没有时间做饭。因此,让我们保重,我们保证,我们真的很擅长!
我不知道为什么会这样或要怎么做,任何建议将不胜感激,感谢您给予的所有帮助。
答案 0 :(得分:1)
将<meta charset="utf-8">
插入头部。
或者,如果可以访问,只需在服务器端设置Content-Type: text/html;charset=utf-8
。
您也可以添加.htaccess:AddDefaultCharset UTF-8
更多信息,请点击http://www.askapache.com/htaccess/setting-charset-in-htaccess.html
希望这会有所帮助
答案 1 :(得分:0)
您是否使用过元素进行显示。
例如
<p>Get food fast - not fast food. Hello, we’re Omnifood, your new premium food delivery service. We know you’re always busy. No time for cooking. So let us take care of that, we’re really good at it, we promise!</p>
<!-- Or use the heading elements -->
<h1>Get food fast - not fast food. Hello, we’re Omnifood, your new premium food delivery service. We know you’re always busy. No time for cooking. So let us take care of that, we’re really good at it, we promise!</h1>
<!-- You can use the heading elements all the way up until <h6>
我希望这能解决您的问题
如果此方法不可行,请在您的head元素中添加以下内容:
答案 2 :(得分:0)
在所有html文件或头文件中为字符UT8 <meta charset="utf-8">
添加元标记。