Carbon


TECGetTextEncodingFromInternetName

Header: TextEncodingConverter.h Carbon status: Supported

Returns the Mac OS text encoding specification that corresponds to an Internet encoding name.

OSStatus TECGetTextEncodingFromInternetName (
    TextEncoding *textEncoding, 
    ConstStr255Param encodingName
);
Parameter descriptions
textEncoding

On return, a pointer to a structure that contains a Mac OS text encoding specification.

encodingName

An Internet encoding name, in 7-bit US ASCII.

function result

A result code.

DISCUSSION

Internet encoding names are stored as strings, while the Text Encoding Converter uses numeric values.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 7/17/2000)