How the mnemonics file works

The mnemonics file associates POSIX mnemonic strings with Unicode UCS-2 character encodings. Because the mnemonic strings use XPG4 characters, the strings are suitable for use in any destination character set.

The mnemonics file is used only if the conversion configuration file (charset_name.cfg) for a destination character set specifies a mode of “MNEMONIC”. If this is the case, then at conversion time the mnemonics file is used as follows:

  1. If a source character is found to be unmappable in the destination character set, Sybase software converts the source character to Unicode UCS-2.

  2. Sybase looks up the UCS-2 encoding in the mnemonics file and uses the mnemonic string associated with it in the destination data stream.

  3. If the mnemonics file does not contain a suitable string, a Unicode UCS-2 hexadecimal string is used in the destination data stream.