News for hackers. Stuff that matters.
Re:No comic sans in httpd status pages by gpvos on Friday February 19, 2016 @01:55PM (#11135636)

    > 	    "sans-serif; }\n”
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.
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 ”
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.
Re:No comic sans in httpd status pages by ufo on Friday February 19, 2016 @10:12PM (#11138579)
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.
Re:No comic sans in httpd status pages by gpvos on Friday February 19, 2016 @03:43PM (#11136474)
Yeah, that's how I noticed it too.
Re:No comic sans in httpd status pages by gpvos on Friday February 19, 2016 @04:45PM (#11136887)
Re:No comic sans in httpd status pages by ben_bai on Friday February 19, 2016 @03:35PM (#11136425)
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!

Re:No comic sans in httpd status pages by exolymph on Friday February 19, 2016 @07:25PM (#11137846)
I don't understand why this was downvoted?
Re:No comic sans in httpd status pages by Navarr on Friday February 19, 2016 @08:43PM (#11138218)
Doesn't contribute to discussion?
Re:No comic sans in httpd status pages by thristian on Friday February 19, 2016 @07:33PM (#11137897)
It looks like a novelty account, and HN generally frowns on novelty accounts.