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:

~

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.


~

Comments