Scott Robinson Technical Lead

Internet Explorer, Ajax Requests and UTF-8

While debugging a legacy application recently, I came across an ajax script that was returning the header below and failing in IE:

Content-Type: application/json; charset=utf8

 The correct header, has a dash between the UTF and 8 (correctly so):

Content-Type: application/json; charset=utf-8

Hopefully this can help someone out if they have to debug something similar.

Found this useful? Everything here is free and stays that way. If it saved you an afternoon, you can buy me a coffee.