2.11.1 Multibyte Character Encoding Control

There are two ways of controlling character encoding conversions:

  • Administratively by using environment variables TPMBENC and TPMBACONV
  • Programmatically by using ATMI functions

The following two flowcharts demonstrate how the environment variables and ATMI are used during the allocating, sending, receiving, and converting of an MBSTRING buffer.

Figure 2-2 Allocating and Sending an MBSTRING Buffer


Allocating and Sending an MBSTRING Buffer Diagram

Figure 2-3 Receiving and Converting an MBSTRING Buffer (Sheet 1 of 2)


Receiving and Converting an MBSTRING Buffer (Sheet 1 of 2) Diagram

Figure 2-4 Receiving and Converting an MBSTRING Buffer (Sheet 2 of 2)


Receiving and Converting an MBSTRING Buffer (Sheet 2 of 2) Diagram