Partager via


DetectEncodingInfo

This structure contains the results of code page detection by the IMultiLanguage2::DetectCodepageInIStream and IMultiLanguage2::DetectInputCodepage methods.

typedef struct tagDetectEncodingInfo {
  UINT nLangID;
  UINT nCodePage;
  INT nDocPercent;
  INT nConfidence;
} DetectEncodingInfo, *pDetectEncodingInfo;

Members

  • nLangID
    Microsoft Win32-defined primary language identifier that has been detected for the source string.
  • nCodePage
    Win32-defined code page, which is valid for single-byte and double-byte input only, that has been detected for the source string.
  • nDocPercent
    Percentage of the string that is in the detected language.
  • nConfidence
    Value that indicates the degree to which the detected data is correct. Confidence is based on an internal scoring method. It is a relative cumulative data item rather than an absolute percentage; therefore, values may be greater than 100.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Mlang.h, Mlang.idl.

See Also

IMultiLanguage2::DetectCodepageInIStream | IMultiLanguage2::DetectInputCodepage

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.