Поделиться через


Code Page Detection (Windows Embedded CE 6.0)

1/6/2010

Through the IMultiLanguage2 interface, MLang provides two code page detection methods, IMultiLanguage2::DetectInputCodepage and IMultiLanguage2::DetectCodepageInIStream. These methods determine the possible languages and code pages of the text data that is given by the caller, returning the results in an array of DetectEncodingInfo structures. In addition to containing a detected language and code page, these structures include two members that indicate the percentage of the data that is in the detected language, as well as the relative confidence that the structure contains the correct language and code page. To help increase the accuracy of the detected code page and language, the MLDETECTCP enumerated type is provided. These values specify the type of data that is being given to the detection method.

See Also

Other Resources

Internet Explorer Multiple-Language API Application Development