CFStringConvertEncodingToIANACharSetName

Header: CFString.h Carbon status: Supported

Obtains the name of the IANA registry "charset" that is the closest mapping to a specified string encoding.

CFStringRef CFStringConvertEncodingToIANACharSetName (
    CFStringEncoding encoding
);
Parameter descriptions
encoding

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

function result

A reference to a CFString object containing the related IANA "charset" name. Returns NULL if the encoding is not recognized.

DISCUSSION

The CFStringConvertIANACharSetNameToEncoding 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)