]> source.dussan.org Git - jquery.git/commitdiff
Added feature #1934 by allowing script.charset to be set through an optional 'scriptC...
authorDavid Serduke <davidserduke@gmail.com>
Sat, 15 Dec 2007 23:30:34 +0000 (23:30 +0000)
committerDavid Serduke <davidserduke@gmail.com>
Sat, 15 Dec 2007 23:30:34 +0000 (23:30 +0000)
src/ajax.js

index a5a08ecd6d210741013e78416ba88d5dee910676..01ee877327479c17f0e37d059e32cdece89ec163 100644 (file)
@@ -224,6 +224,8 @@ jQuery.extend({
                        var head = document.getElementsByTagName("head")[0];
                        var script = document.createElement("script");
                        script.src = s.url;
+                       if (s.scriptCharset)
+                               script.charset = s.scriptCharset;
 
                        // Handle Script loading
                        if ( !jsonp ) {