Some implementations may request that they be notified when the charset is actually detected.
void notifyResolvedCharset( in ACString charset, in nsISupports closure );
- The detected charset.
- The closure returned by
Called to resolve the charset that should be used for parsing the document being loaded from aChannel.
If the charset cannot be resolved, but the implementation of
nsICharsetResolver wants to be notified of the final resolved charset when one is available, it can set
true. If this is done, the caller of
requestCharset is responsible for calling
notifyResolvedCharset() and passing it the final resolved charset and the closure that
ACString requestCharset( in nsIWebNavigation aWebNavigation, in nsIChannel aChannel, out boolean aWantCharset, out nsISupports aClosure );
nsIWebNavigationthe document is being loaded in. May be
- The channel the document is coming in from.
- Gets set to
notifyResolvedCharset()should be called with the given
- A resulting object which should be passed to
aWantCharsetis set to
The resolved charset, or an empty string if no charset could be determined.