Re:No comic sans in httpd status pages
by kmm on Friday February 19, 2016 @03:29PM
(#11136386)
Interestingly, my browser detects the page as Windows-1252 and displays that quote as â€
[ Parent
| on HN ]
Re:No comic sans in httpd status pages
by TazeTSchnitzel on Friday February 19, 2016 @07:27PM
(#11137859)
That's because marc.info doesn't supply a Content-Type header (or equivalent <meta> tag) to specify encoding, so the browser must assume it's using some 8-bit one. On most computers in Western Europe, the US and so on, it'll assume Windows-1252.
You have to explicitly specify you want UTF-8 to get it. This would seem to be strange since it's The Encoding now, but assuming 8-bit is necessary for backwards-compatibility, I'm guessing.
Re:No comic sans in httpd status pages
by colejohnson66 on Friday February 19, 2016 @09:59PM
(#11138528)
It's the same reason we have to include '<!DOCTYPE html5>' when we want the browser to use HTML5. It's the same reason XHTML failed and we had to deal with quirks mode for years before HTML5. Backwards compatibility sucks.
You only need to do <!DOCTYPE html>, without the 5.
Re:No comic sans in httpd status pages
by colejohnson66 on Saturday February 20, 2016 @01:02AM
(#11139108)
And that's why I program instead of web design.
Re:No comic sans in httpd status pages
by chipperyman573 on Saturday February 20, 2016 @02:56AM
(#11139329)
Are you saying web design isn't programming? HTML isn't (although HTML5 can be if you use canvas etc), but javascript sure is.