Skip to content
Permalink
Browse files

For JSON and script requests, set the scriptCharset before the url so…

… IE won't interpret it the wrong way; fixes #4855.
  • Loading branch information
dmethvin authored and jeresig committed Jun 27, 2010
1 parent 033a4c4 commit c8c8f8458a579d8f87e7ee6b8e4510cc4e4445bb
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/ajax.js
@@ -300,10 +300,10 @@ jQuery.extend({
if ( s.dataType === "script" && type === "GET" && remote ) {
var head = document.getElementsByTagName("head")[0] || document.documentElement;
var script = document.createElement("script");
script.src = s.url;
if ( s.scriptCharset ) {
script.charset = s.scriptCharset;
}
script.src = s.url;

// Handle Script loading
if ( !jsonp ) {

0 comments on commit c8c8f84

Please sign in to comment.
You can’t perform that action at this time.