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

Line ending issue with Mercurial or Visual Studio -

R - Plot: How to format in 10-base scientific notation and put it text, mtex, title etc functions? -

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