Important: The information in this document is obsolete and should not be used for new development.
Returns the currently supported text encoding specifications for a specified region.
pascal OSStatus TECGetWebTextEncodings (
For a specified Mac OS region code, TECGetWebTextEncodings fills in an array of type TextEncoding with a list of encodings commonly found on the World Wide Web for that region. The function eliminates any duplicate information in the process, so the number of encodings TECGetWebTextEncodings returns in the availableEncodings array may be fewer than the number of elements you allocated for the array based on your call to TECCountWebTextEncodings. TECGetWebTextEncodings tells you the number of specifications it returns in the actualAvailableEncodings parameter.
The list of available encodings could be used for an encoding selection menu found in many Web browsers.
The function TECCountAvailableTextEncodings
The function TECGetAvailableTextEncodings
The function TECGetTextEncodingFromInternetName
The function GetTextEncodingName
The region codes section of "Script Manager" in Inside Macintosh: Text