logoalt Hacker News

skobesyesterday at 1:34 PM1 replyview on HN

It is still important to declare UTF-8 either in <meta> or Content-Type header, otherwise it will usually default to Windows-1252. Yay compatibility!


Replies

tabwidthyesterday at 10:31 PM

Even the meta version is picky about where it goes. The whole declaration has to fit inside the first 1024 bytes. Easy to break with a giant comment at the top.