Implemented by
Here Charsets are indentified by ASCII strings. Charset alias resolution is provided by default in most methods. "Raw" versions that do not need this resolution are also provided. @created 21/Feb/2000 @author Catalin Rotaru [CATA]
[scriptable, uuid(f5323a76-c8f7-4c65-8d0c-1250e969c7d5)]
interface nsICharsetConverterManager : nsISupports
Methods
A shortcut to calling nsICharsetAlias to do alias resolution
ACString
getCharsetAlias(in string charset)
Get some data about the given charset. This includes whether the
character encoding may be used for certain purposes, if it is
multi-byte, and the language code for it. See charsetData.properties
for the source of this data. Some known property names:
notForBrowser - not to be used in the bowser.
notForOutgoing - not to be used for exporting files.
LangGroup - language code for charset, e.g. 'he' and 'zh-CN'.
isMultibyte - is this a multi-byte charset?
@param charset name of the character encoding, e.g. 'iso-8859-15'.
@param prop property desired for the character encoding.
@return the value of the property, for the character encoding.
AString
getCharsetData(in string charset, in wstring prop)
Get the complete list of available charset detectors.
nsIUTF8StringEnumerator
GetCharsetDetectorList()
Get the language group for the given charset. This is similar to calling <tt>getCharsetData</tt> with the <tt>prop</tt> "LangGroup". @param charset name of the character encoding, e.g. 'iso-8859-15'. @return the language code for the character encoding.
nsIAtom
getCharsetLangGroup(in string charset)
nsIAtom
getCharsetLangGroupRaw(in string charset)
Get the human-readable name for the given charset.
AString
getCharsetTitle(in string charset)
Get the complete list of available decoders.
nsIUTF8StringEnumerator
getDecoderList()
Get the complete list of available encoders.
nsIUTF8StringEnumerator
getEncoderList()
Get the Unicode decoder for the given charset. The "Raw" version skips charset alias resolution
nsIUnicodeDecoder
getUnicodeDecoder(in string charset)
nsIUnicodeDecoder
getUnicodeDecoderRaw(in string charset)
Get the Unicode encoder for the given charset. The "Raw" version skips charset alias resolution
nsIUnicodeEncoder
getUnicodeEncoder(in string charset)
nsIUnicodeEncoder
getUnicodeEncoderRaw(in string charset)
Compare to: