This interface converts a string from one code page to another.
IMLangConvertCharset Methods
DoConversion Converts the given string from the source code page of the Conversion Object to its destination code page. DoConversionFromUnicode Converts the given wide-character string from Unicode to the destination code page of the Conversion Object. DoConversionToUnicode Converts the given string from the source multibyte code page of the Conversion Object to the Unicode character set. GetDestinationCodePage Retrieves the identifier value of the destination code page of the Conversion Object. GetProperty Retrieves the MLCONVCHAR constant(s) that the Conversion Object has set. GetSourceCodePage Retrieves the code page identifier value that has been designated as the source code page of the Conversion Object. Initialize Initializes the internal state of the Conversion Object with the specified parameters.
Interface Information
Implementation Conversion 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
A client creates an instance of the Conversion Object by using IMultiLanguage::CreateConvertCharset or by explicitly calling CoCreateInstance. The IMLangConvertCharset methods perform more efficient character set conversions than the methods in the IMultiLanguage interface.
A caller uses this interface to repeatedly perform character set conversions involving the same combination of source/destination code pages. This interface can also be used to reinitialize the Conversion Object with new source and destination code pages as many times as necessary.