css呈现与奇怪的字符 [英] css renders with strange characters

查看:69
本文介绍了css呈现与奇怪的字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个index.html和global.css文件。当我打开这些文件在Coda,Textmate等,一切看起来不错。比我尝试在firefox,index.html加载css从正确的路径,但它不生效。比我试图看到从firefox的CSS代码,我看到的迹象;

I have an index.html and global.css files. When I open these files at Coda, Textmate, etc. , everything looks fine. than I try in firefox, index.html loads css from right path, but it doesnt take effect. than I tried to see css code from firefox, and I see signs like;


ॵ氮扵汬整笮慤摩涌㨰` ‰㕰硽畲⹢畲汥琠汩筬楳琭獴祬攺摩獣㭰慤摩涌㨲モザ摲摲慷汩湥筢潲摥㨱灸⁤悭⁤悭搠⍣捣捣

ॵ氮扵汬整筰慤摩湧㨰‵灸‰′㕰硽畬⹢畬汥琠汩筬楳琭獴祬攺摩獣㭰慤摩湧㨲灸紮摲慷汩湥筢潲摥爭扯瑴潭㨱灸⁤慳桥搠⍣捣紣捯湴敮琠栱筦潮琺㈲灸⁇敯牧楡

并且css无法正常工作。你对这个问题有什么想法吗?

and css doesnt work. do you have any idea about the problem?

我试图创建新的css,并写入代码,但同样的问题再次出现。

I tried to create fresh new css, and write the code in, but same problem happens again.

index.html

index.html

<link rel="stylesheet" href="css/global.css" type="text/css" media="screen" />

欣赏!非常感谢!

推荐答案

这可能是因为你的CSS文件是UTF-16编码的,而你的HTML文档是ISO-8859 -1 / UTF-8,还是相反呢?

Can it be that your CSS file is UTF-16 encoded, while your HTML document is ISO-8859-1 / UTF-8, or the other way around? This question has been around on SO several times, and this was always the answer.

更新: 这里是一个。

这篇关于css呈现与奇怪的字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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