GT.M Operations – M mode and UTF-8 mode

GT.M operates in two modes – M mode and UTF-8 mode. Users can switch between M mode and UTF-8 mode depending on the character set of the underlying data. Users must set GT.M to:

[Note]

UTF-8 mode is an optional alternative way to input, output, and interpret as strings the arbitrary sequences of bytes in the indexes and values of global and local variables. See "Unicode Technical Bulletin" for more information on GT.M support for Unicode.

The following is a sample command sequence to change the system environment from M mode to UTF-8 mode. Assume that $ gtm_dist has been defined and is set to /usr/local/gtm:

gtmroutines=". $gtm_dist/utf8 $gtm_dist"
export gtmroutines
gtm_dist=$gtm_dist/utf8
export $gtm_dist
$gtm_chset="UTF-8"
$export gtm_chset 

The following is a sample command sequence to change the system environment from UTF-8 mode to M mode. Assume that $ gtm_dist has been defined and is set to /usr/local/gtm/utf8:

$gtm_dist=`echo $gtm_dist | sed 's/utf8\(\/\)*//'`"
$ export gtm_dist
$ gtmroutines=". $gtm_dist” 
$ export gtmroutines 
$ gtm_chset=”M”