Navigation Menu

Skip to content

Commit

Permalink
For JSON and script requests, set the scriptCharset before the url so…
Browse files Browse the repository at this point in the history
… IE won't interpret it the wrong way; fixes jquery#4855.
  • Loading branch information
dmethvin committed Jun 27, 2010
1 parent 21178f2 commit d637ec3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ajax.js
Expand Up @@ -295,10 +295,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 ) {
Expand Down

0 comments on commit d637ec3

Please sign in to comment.