News for hackers. Stuff that matters.
Re:Show HN: This website is valid JSON by necovek on Wednesday December 09, 2020 @02:43AM (#25356293)
The reason browsers' charset autodetection works differently locally is likely because HTTP standard specifies Latin1 (ISO-8859-1) as the default encoding (at least in 1.1).
Re:Show HN: This website is valid JSON by myfonj on Wednesday December 09, 2020 @07:18AM (#25357790)
Or server sends explicit charset in HTTP header (`Content-Type: text/html; charset=UTF-8`), so meta element override is not needed at all. Naturally, there is no such header present in file:///.