Carbon


Text Encoding Preferences

Header: MacTextEditor.h

Specifies how to encode text for your application.

enum {
    kTXNSystemDefaultEncoding = 0,
    kTXNMacOSEncoding = 1,
    kTXNUnicodeEncoding = 2
};

Constant descriptions

kTXNSystemDefaultEncoding

Use the encoding that is used internally (i.e., preferred) by MLTE and the system. This is Unicode for a system that has ATSUI.

kTXNMacOSEncoding

Incoming and outgoing text should be in traditional Mac OS Script system encodings even if MLTE uses another format internally. MLTE will use the Text Encoding Convertor (TEC) to convert text and offsets to match your application’s preference.

kTXNUnicodeEncoding

Incoming and outgoing text should be in Unicode even on systems that do not have ATSUI. MLTE will use the Text Encoding Convertor (TEC) to convert text and offsets to match the applications preference.


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