[whatwg] Charset sniffing from XML prolog

Boris Zbarsky bzbarsky at MIT.EDU
Wed Oct 7 17:23:35 PDT 2009


On 10/7/09 7:51 PM, Kartikaya Gupta wrote:
> I tried it again in Chrome and if I paste the above in the address bar I get US-ASCII. But if I save it to a file and then load it I get UTF-8. I checked the headers being sent from Apache and they don't include any sneaky encoding hints, just Content-Type: text/html.

Can you attach the exact file you saved?  Does it have a BOM, perchance?

-Boris



More information about the whatwg mailing list