开发者

Problem with character encoding of '

Why does this page

http://reboltutorial.com/cgi-bin开发者_Go百科/designpatterns-quiz.cgi

shows a ? in the sentence (at least on my firefox)

Separates an object’s abstraction from its implementation

whereas I am using utf-8 ?


Because the site declares UTF-8 as its content type, but the ´ is a ISO-8859-1 encoded character. Switch your editor to UTF-8 and type it in again (this is the recommended way over using entities).


Because whoever made that page actually encoded it iso-8859-1.


Just saying you're using UTF-8 doesn't make it so.

Where does that character come from? Is it static content, or does it come from a database or so? If it's from the database, make sure your entire web application stack uses UTF-8 as well. I don't know what you're using, but I know it's not straight-forward for PHP/Apache/MySQL.

If it's static content, make sure you save your HTML files as UTF-8.

Contrary to what the others have said, by the way, that character is not an ISO-8859-1 character, but a Windows-1252 character.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜