Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

MLang provides a number of different ways to convert strings from one code page to another. The most important of these is the MLang Conversionobject. This object supports the IMLangConvertCharsetinterface and is dedicated to converting strings between a source code page and a destination code page. The user must specify both of these code pages.

The following list shows the conversion methods that the IMLangConvertCharsetinterface provides:

When using the conversion functionality provided by MLang, the caller must determine whether the parameters that specify the size of the source string and the destination buffer are measured in a byte count or a character count. In general, all APIs that are specifically dedicated to converting to or from Unicode take a character count for the Unicode string. All other strings are measured in a byte count.

The following list shows the conversion methods that the IMultiLanguage2interface supports:

These methods function in the same manner as the IMLangConvertCharsetmethods, but may be less efficient when multiple conversions must be done between the same combination of source and destination code pages.

See Also