Re: nsICharsetDetector

Christian Biesinger <[email protected]> Thu, 01 Sep 2005 01:41:37 +0200
Newsgroups gmane.comp.mozilla.internationalization
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
[email protected] wrote:
> Perhaps I'm just going about this the wrong way. How exactly does the
> browser do character detection? ie. What happens when you select the
> character detector from the view menu? 

This is the code that runs when you select a charset:
http://lxr.mozilla.org/seamonkey/source/xpfe/browser/resources/content/browser.js#302

So it just sets the charset on the docshell and reloads the page.