Important: The information in this document is obsolete and should not be used for new development.
Counts and returns the number of currently supported text encodings for a specified region.
pascal OSStatus TECCountWebTextEncodings (
The TECCountWebTextEncodings function counts and returns the number of text encodings that you can use to perform conversions for the specified region. This number tells you what size array you must allocate in a parameter of the function TECGetWebTextEncodings. Therefore, you should call this function before you call TECGetWebTextEncodings in order to accommodate the specifications for all of these text encodings.
TECCountWebTextEncodings counts each instance of the same encoding. That is, if different conversion plug-ins support the same text encoding for any of the conversion processes they provide, this function includes each instance of the text encoding in its sum. Consequently, the same text encoding may be counted more than once. For example, the Japanese Encodings plug-in supports Mac OS Japanese and so does the Unicode Encodings plug-in. However, since the TECGetWebTextEncodings function does not return duplicate text encoding specifications, TECCountWebTextEncodings may return a number greater than the number of array elements required.
The function TECCountAvailableTextEncodings
The function TECGetAvailableTextEncodings
The function TECGetTextEncodingFromInternetName
The function GetTextEncodingName
The region codes section of "Script Manager" in Inside Macintosh: Text