internet explorer - How does IE encoding auto-select works? -


if use ie open webpage content-type charset not set explicitly. , assume web server doesn't add charset value in http response header. so, in situation, criteria ie takes determine encoding when rendering webpage?

interent explorer relies upon component called "mlang" windows globalization team attempt "sniff" bytes returned server determine character set in use.

this code not documented, uses frequency analysis , information current user's locale attempt "guess" codepage server used.

pages should always set proper charset in order avoid sniffing, can result in unpredictable results (e.g. instance, heuristic can return different results when run on japanese machine vs. on us-english machine).


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -