简体   繁体   English

IFrame编辑器IE编码

[英]IFrame Editor IE encoding

My page have meta tag for UTF-8, 我的页面具有用于UTF-8的元标记,

I created an iframe editor with; 我创建了一个iframe编辑器;

document.getElementById('myeditor').contentWindow.document.designMode="on";
document.getElementById('myeditor').contentWindow.document.close(); 

and getting the value of this iframe with; 并获得此iframe的价值;

$('#myeditor').contents().find('body').html() or ('#myeditor').contents().find('body').text()

both worked in chrome, firefox but IE return value has different encoding 两者都适用于chrome,firefox,但IE返回值具有不同的编码

the entered text(original) = "çöşiğüişçö" (or something similar) 输入的文本(原始)=“çöşiğüişçö”(或类似名称)

database value when i get from chrome = çöişçöişüğ çöişüğişçöişüğ çö (This is ok for me.) 当我从chrome中获得数据库值= çöişçöişüğ çöişüğişçöişüğ çö (This is ok for me.)

database value when i get from IE = çöiþçöiþüðiþçöiþüðiþçöiþüðþö 当我从IE中获取数据库值= çöiþçöiþüðiþçöiþüðiþçöiþüðþö

i tried to change meta in the iframe but nothing works. 我试图更改iframe中的meta,但没有任何效果。 when i look at the code in ie webtool, iframe has a meta tag which is " meta name="GENERATOR" content="MSHTML 9.00.8112.16434" " 当我在webtool中查看代码时,iframe具有一个元标记,即“ meta name =“ GENERATOR” content =“ MSHTML 9.00.8112.16434”“

Please help me. 请帮我。

(IE9) (IE9)

他们输入的文字不太可能采用UTF-8格式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM