Partager via


IMultiLanguage2 interface

Collects information about character sets, code pages, or locales from the MIME database; and converts strings from one character set to another.

Members

The IMultiLanguage2 interface inherits from the IUnknown interface. IMultiLanguage2 also has these types of members:

  • Methods

Methods

The IMultiLanguage2 interface has these methods.

Method Description
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.

ConvertStringFromUnicodeEx

Translates the source Unicode string to the specified multibyte code page.

ConvertStringInIStream

Converts the given stream from the source code page to the destination code page.

ConvertStringReset
ConvertStringToUnicode

Translates the source string from the specified code page to Unicode.

ConvertStringToUnicodeEx

Translates the multibyte string from the specified code page to Unicode.

CreateConvertCharset

Creates a charset Conversion object and retrieves its corresponding IMLangConvertCharset interface.

DetectCodepageInIStream

Detects the code page of the given stream.

DetectInputCodepage

Detects the code page of the given string.

EnumCodePages

Creates a Code Page Enumeration Object, initializes it with the value specified with grfFlags, and gets the corresponding IEnumCodePage interface.

EnumRfc1766

Creates a Locale Enumeration Object and gets the corresponding IEnumRfc1766 interface.

EnumScripts

Creates a Script Enumeration Object, initializes it with the specified SCRIPTINFO constants, and gets the corresponding IEnumScript interface.

GetCharsetInfo

Gets the MIMECSETINFO structure corresponding to the specified charset name.

GetCodePageDescription

Gets the code page description that corresponds to uiCodePage.

GetCodePageInfo
Note   GetCodePageInfo is available for use in the operating systems specified in the Requirements section. It not available within an app container on Windows 8 and will always return E_FAIL.
 

Gets the MIMECPINFO structure corresponding to the specified code page.

GetFamilyCodePage

Gets the family code page identifier value of the specified code page.

GetLcidFromRfc1766

Gets the locale identifier value (LCID) corresponding to the given RFC1766-conforming name.

GetNumberOfCodePageInfo

Gets the number of code pages for which there is information available on the system.

GetNumberOfScripts

Gets the number of scripts.

GetRfc1766FromLcid

Gets the RFC1766-conforming name that corresponds to the given locale identifier (LCID).

GetRfc1766Info

Gets an RFC1766INFO structure that corresponds to the given locale identifier (LCID) value.

IsCodePageInstallable
IsConvertible

Checks if the charset conversion from the source code page to the destination code page can be performed.

SetMimeDBSource

Sets the MIME database to be used by MLang.

ValidateCodePage

Validates the code page and installs a language pack, if required.

ValidateCodePageEx

Validates the code page and installs a language pack, if required.

 

Remarks

IMultiLanguage2 updates IMultiLanguage by adding and expanding methods. These changes create a new code page detection functionality and enhance the existing character set conversion functionality. IMultiLanguage2 supports the original capabilities of IMultiLanguage, such as character set conversion and information retrieval from the MIME database. Use IMultiLanguage2 instead of IMultiLanguage.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

Mlang.h

IDL

Mlang.idl

DLL

Mlang.dll