I'm loading html page for a div using jquery ajax load. The weighted page has German characters, and are not encoded correctly, while German characters are displayed correctly on the main page. Please help me with this problem.
HTML Page & lt ;! DOCTYPE html public "- // W3C // DTD XHTML 1.0 transcription // EN" http://www.w3.org /TR/xhtml1/DTD/xhtml1-transitional.dtd"> & Lt; html xmlns = "http : //www.w3.org/1999/xhtml "> gt; Top & gt; & gt; Meta http-equiv =" content-type "content =" text / html; Charset = ISO -885 9-15 "/ & gt; & Lt; script type =" text / javascript "src =" scripts / jquery-1.4.2.min.js "& gt; & lt; / script & gt; & Lt; script type = "text / javascript" & gt; $ (document) .ready (function () {$ .ajax ({url: 'startpage.html', data type "text" content type "application / x-www- form-Uarelaksod; charset = UTF -8 "success: function (data) {$ ( '# loadPage'). Html (data);}});}); & Lt; / script & gt; & Lt; / head & gt; & gt; Body & gt; & lt; div id = "loadPage" & gt; & lt; / div & gt; & lt; code for
LA / ng & lt ;! DOCTYPE HTML PUBLIC "- // W3C // DTD xHTML 1.0 transcription // eN http: //www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> & Lt; html xmlns = "Http://www.w3.org/1999/xhtml"> gt; & quot; Meta http-equiv = "content-type" content = "text / html; Charset = ISO-885 9-15 "/> & lt; / head & gt; & gt; Body & gt; Loaded Content - LA - (This text is not displayed properly) & lt; / Body> In this page I tried to add the meta tag to the ISO encoding of the event, even without success. / p>
before: function (xhr) {xhr.overrideMimeType ( 'text / html; charset = ISO-8859-15 ');}, Under its AJAX function, or AJAX setup ();
& lt ;! DOCTYPE html public "- // W3C // DTD XHTML 1.0 transcription // EN" http://www.w3.org /TR/xhtml1/DTD/xhtml1-transitional.dtd"> & Lt; html xmlns = "http : //www.w3.org/1999/xhtml "> gt; Top & gt; & gt; Meta http-equiv =" content-type "content =" text / html; Charset = ISO -885 9-15 "/ & gt; & Lt; script type =" text / javascript "src =" scripts / jquery-1.4.2.min.js "& gt; & lt; / script & gt; & Lt; script type = "text / javascript" & gt; $ (document) .ready (function () {$ .ajax ({url: 'startpage.html', data type "text" content type "application / x-www- form-Uarelaksod; charset = UTF -8 "success: function (data) {$ ( '# loadPage'). Html (data);}});}); & Lt; / script & gt; & Lt; / head & gt; & gt; Body & gt; & lt; div id = "loadPage" & gt; & lt; / div & gt; & lt; code for
LA / ng & lt ;! DOCTYPE HTML PUBLIC "- // W3C // DTD xHTML 1.0 transcription // eN http: //www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> & Lt; html xmlns = "Http://www.w3.org/1999/xhtml"> gt; & quot; Meta http-equiv = "content-type" content = "text / html; Charset = ISO-885 9-15 "/> & lt; / head & gt; & gt; Body & gt; Loaded Content - LA - (This text is not displayed properly) & lt; / Body> In this page I tried to add the meta tag to the ISO encoding of the event, even without success. / p>
before: function (xhr) {xhr.overrideMimeType ( 'text / html; charset = ISO-8859-15 ');}, Under its AJAX function, or AJAX setup ();
Comments
Post a Comment