I have a strange problem in IE. This is due to how IE detects iframe encoding based on its parent content. My application wraps the contents of the page in an iframe and sets the encoding of the parent window to UTF-8 through the Content-Type header. The content of the iframe does not set the encoding through the Content-Type and takes the encoding of the parent window at boot time. This is the desired behavior - the content window requires UTF-8 encoding for some language content, but for complex reasons beyond my control, it cannot force its own encoding, so it relies on the encoding of the parent window.
A problem occurs when a content page is an action object of a form. When the form is submitted and the page loads in the content window, it automatically selects the encoding of Western Europe (Windows). Does anyone know why? I tried looking for some documentation on related behavior, but googles they do nothing. It would be useful to use some kind of output (except for sending a Content-Type header or a bytecode label in the content).
Unfortunately, I donโt have a public place to place this file, but copying these code samples to local files and saving each with UTF-8 encoding without a byte sign should consistently reproduce the behavior in all versions of IE.
frame1.html
<meta http-equiv = "Content-Type" content = "text / html; charset = UTF-8">
<div> ใจ ใณ ใณ ใผ ใ </div>
<iframe src = "frame2.html"> </iframe>
frame2.html
<form>
<input value = "ใจ ใณ ใณ ใผ ใ">
<input type = "submit">
</form>, , iframe, " " "UTF-8", . "" iframe, . iframe "", "UTF-8" " (Windows)". , - , , UTF-8, .
!