nsICharsetDetector
[email protected] 24 Aug 2005 11:27:57 -0700
| Newsgroups | gmane.comp.mozilla.internationalization |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <[email protected]> |
I am trying to use the chardet functions through xpcom. After downloading the latest CVS (as of today) and compiling with a mozconfig of: mk_add_options MOZ_CO_PROJECT=suite ac_add_options --enable-application=suite ac_add_options --disable-optimize ac_add_options --enable-shared ac_add_options --enable-debug ac_add_options --enable-extensions=python/xpcom,universalchardet,cview the nsICharsetDetector interface does not seem to exist. I cannot locate the idl file anywhere and when I try to use it, errors are returned. In addition, cview does not show this interface in its listings. I can create an instance based on the @mozilla.org/intl/charsetdetect;1?type=universal_charset_detector component but the only interface that can be used with this component seems to be nsISupports. I am able to list the charset detectors available through the '@mozilla.org/charset-converter-manager;1' component along with the nsICharsetConverterManager interface and the GetCharsetDetectorList() method. Is there anything special I need to do to get the nsICharsetDetector interface or am I going at this the wrong way? From the 'view/character encoding/auto detect/' menu in my mozilla suite compile browser window, it seems that the charset detection is working correctly. Perhaps there is another way that I can access these libraries from another program?