Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Up Previous Next 

PATH 
Mac OS 8 and 9 Developer Documentation > Text Encoding Conversion Manager
Programming With the Text Encoding Conversion Manager



TECGetTextEncodingFromInternetName

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

pascal OSStatus TECGetTextEncodingFromInternetName (
                     TextEncoding *textEncoding,
                     ConstStr255Param encodingName);
textEncoding
A pointer to a text encoding specification. On output, the structure contains the Mac OS text encoding specification that corresponds to the Internet name specified by the encodingName parameter.

encodingName
A character string holding the Internet encoding name, in 7-bit US ASCII.

function result
A result code. See Text Encoding Conversion Manager Result Codes for a list of possible values.

DISCUSSION

The Internet uses names (strings) to identify Web or mail encodings, while the Text Encoding Converter uses numeric text encoding specifications. You use TECGetTextEncodingFromInternetName to obtain the text encoding specification for a text encoding whose Internet encoding name you provide. This function performs the opposite action of TECGetTextEncodingInternetName.

SEE ALSO

The function GetTextEncodingName


© 1999 Apple Computer, Inc. – (Last Updated 13 Dec 99)

Up Previous Next