IMLStrAttrWStr Interface     IMultiLanguage::ConvertSt...     MLang Interfaces    
Web Workshop (Miscellaneous)

IMultiLanguage Interface

This interface contains methods that perform two primary functions: gathering information about character sets, code pages or locales from the MIME database and converting strings from one character set to another.

IMultiLanguage Methods

ConvertString Converts the given source string from the source code page to the destination code page.
ConvertStringFromUnicode Translates the source Unicode string to the specified multibyte code page.
ConvertStringReset Not currently implemented.
ConvertStringToUnicode Translates the source string from the specified code page to Unicode.
CreateConvertCharset Creates a charset Conversion Object and retrieves its corresponding IMLangConvertCharset interface.
EnumCodePages Creates a Code Page Enumeration Object, initializes it with the value specified with grfFlags, and retrieves the corresponding IEnumCodePage interface.
EnumRfc1766 Creates a Locale Enumeration Object and retrieves the corresponding IEnumRfc1766 interface.
GetCharsetInfo Retrieves the MIMECSETINFO structure corresponding to the specified character set name.
GetCodePageInfo Retrieves the MIMECPINFO structure corresponding to the code page specified in uiCodePage.
GetFamilyCodePage Retrieves the family code page identifier value corresponding to uiCodePage.
GetLcidFromRfc1766 Retrieves the locale identifier value (LCID) corresponding to the given RFC1766-conforming name.
GetNumberOfCodePageInfo Returns the number of code pages for which there is information available on the system.
GetRfc1766FromLcid Retrieves the RFC1766-conforming name that corresponds to the given locale identifier (LCID).
GetRfc1766Info Retrieves an RFC1766INFO structure that corresponds to the given locale identifier (LCID) value.
IsConvertible Checks if the charset conversion from the source code page to the destination code page can be performed.

Interface Information

Implementation MultiLanguage Object (Mlang.dll)
Inherits from IUnknown
Header and IDL files Mlang.h, Mlang.idl
Minimum availability Internet Explorer 4.0
Minimum operating systems Windows 95, Windows NT 4.0

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0

Remarks

IMultiLanguage provides access to three interfaces: IEnumCodePage, IEnumRfc1766 and IMLangConvertCharset. These enumeration and conversion interfaces can provide information more efficiently than calling the IMultiLanguage methods repeatedly.



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.