Follow kevinlearynet on Twitter!

kevinleary.net

AJAX, XML and Internet Explorer

While working on the KMC Partners website I stumbled upon a cross browser issue using jQuery’s AJAX $.get() method to load and parse XML data.

It seems that if you are using AJAX to load an XML file with UTF-8 character encoding, it will fail in both Internet Explorer 6.0 and 7.0.

However, if you change that character encoding to iso-8859-1 it will load without issues in both versions of Internet Explorer.

This was a big headache for me, and I hope this helps someone else out there avoid a similar issue

Resources

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

No Comments

No comments yet.

Leave a comment

will not be published

Wrap code blocks with <pre lang="LANGUAGE" line="1"> and </pre> where LANGUAGE is a GeSHi supported language syntax.