CFStringConvertEncodingToWindowsCodepage

Header: CFString.h Carbon status: Supported

Obtains the Windows codepage identifier that maps most closely to a given Core Foundation encoding constant.

UInt32 CFStringConvertEncodingToWindowsCodepage (
    CFStringEncoding encoding
);
Parameter descriptions
encoding

Pass a constant that identifies a supported Core Foundation string encoding.

function result

An integer constant that identifies a Windows codepage. Returns the constant kCFStringEncodingInvalidId if the mapping is not known.

DISCUSSION

The CFStringConvertWindowsCodepageToEncoding function is complementary to this function.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)