开发者

latin characters showing in some parts of the page and not others

the page in question is Apple Amor

You can see that in the footer the spanish vowels seem to be showing pro开发者_运维知识库perly , but in the slide down bar(header) they get messed up.

Any ideas why ?


Your page is encoded in ISO-8859-1. Wherever that header comes from, it is most likely encoded in UTF-8.

You would have to change the character set of your page to UTF-8 (that would probably have some consequences) or convert the incoming data from the header. I don't know where it's coming from, so it's hard to tell what the right method would be.

Mandatory basic reading on the issue: The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!)


Your page source shows that you're using:

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

Note that the above tag is not well formed. Where is its closing character "/"? Content-Type should be between double quotes.

Add this tag to your page and test:

<html lang="es">

If that doesn't solve your problem try to change the charset tag to:

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜