Re:No comic sans in httpd status pages
by gpvos on Friday February 19, 2016 @01:55PM
(#11135636)
Note the incorrect, "smart" quote at the end of the line. I'm not sure if that's intentional, but this is going to be interesting.
[ Parent
| on HN ]
Interestingly, my browser detects the page as Windows-1252 and displays that quote as â€
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.
Yeah, that's how I noticed it too.
Not intentional, apparently: https://marc.info/?l=openbsd-tech&m=145591546209364&w=2
Nice catch.
1st: not a unified diff, 2nd: not a bug but a feature, so I didn't even get to 3rd: wrong quote.
Re:No comic sans in httpd status pages
by alice_Alice on Friday February 19, 2016 @02:44PM
(#11136039)
Must..
Control..
Fist...
...of Death!
I don't understand why this was downvoted?
Doesn't contribute to discussion?