开发者

HTML: Charset Meta, can not see Norwegian characters

I've got this in my header (so i can see the norwe开发者_运维问答gian characters, but it does not work.

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

I get weird letters on Ø Æ Å.

Here's a screenshot, and i can't figure out why it's not working.

http://i.imgur.com/YSEcb.jpg

Thx in advance.


Why do you have two different charset declarations? You should declare only one encoding - the same as is used in the HTML file. If you saved the file in UTF-8, remove the line with the declaration of ISO-8859-1 charset.


Convert the html document with you code editor. It may help

HTML: Charset Meta, can not see Norwegian characters


The <meta> tag is not respected by Apache unless you have an overall server configuration that does not have a default charset (highly unlikely) or you have a .htaccess file that disables that. Put this in the directory where the HTML files are that have varying encodings specified by an internal <meta> tag:

AddDefaultCharset Off
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜