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



Chapter Overview

The Text Encoding Converter provides conversion between any two text encodings. This involves a combination of the following techniques:

Conversion routines are handled using plug-in components implemented as code fragments. The main export symbol of each fragment is a routine that returns a pointer to a table containing a plug-in signature, table version information, and hooks to each of the plug-ins functions. Each plug-in can be polled for the encodings it supports and is responsible for handling all conversions between its supported encodings. The Text Encoding Converter decides how best to meet a caller's conversion requirements using the conversion resources available to it. A conversion may involve combining several conversions in succession. The caller is shielded from this complexity and treats an encoding converter object as a single entity regardless of its actual structure.

When using the Text Encoding Converter, an application does not need to be aware of the plug-ins available. Each of the converter objects that returns information about the available text encoding conversion services polls all plug-ins and makes them appear as one large plug-in.


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

Up Previous Next