0
我的頁面有UTF-8的元標記,IFrame編輯器IE編碼
我創建了一個iframe編輯器;
document.getElementById('myeditor').contentWindow.document.designMode="on";
document.getElementById('myeditor').contentWindow.document.close();
並獲取此iframe的值;
$('#myeditor').contents().find('body').html() or ('#myeditor').contents().find('body').text()
都工作在Chrome,火狐但IE瀏覽器的返回值有不同的編碼
輸入的文本(正本)= 「çöşiğüişçö」(或類似的東西)當我從Chrome中得到
數據庫值當我從IE = çöiþçöiþüðiþçöiþüðiþçöiþüðþö
得到我試圖改變= çöişçöişüğ çöişüğişçöişüğ çö (This is ok for me.)
數據庫值元在iframe中,但沒有任何作品。當我看在ie的webtool中的代碼,iframe有一個元標記是「meta name =」GENERATOR「content =」MSHTML 9.00.8112.16434「」
請幫助我。
(IE9)
我應該如何找到文本編碼是什麼,並將其更改爲utf-8。 – gesirdekatwork
使用記事本++並選擇主菜單上的編碼。然後你可以從那裏粘貼它。 –
沒有區別:/ – gesirdekatwork