A GT.M process can operate in either M mode or UTF-8 mode. In certain circumstances, both M mode and UTF-8 mode may concurrently access the same database.
$gtm_chset determines the mode in which a process operates. If it has a value of M, GT.M treats all 256 combinations of the 8 bits in a byte as a character, which is suitable for many single-language applications.
If $gtm_chset has a value of UTF-8, GT.M (at process startup) interprets strings as being encoded in UTF-8. In this mode, all functionality related to Unicode™ becomes available and standard string-oriented operations operate with UTF-8 encoding. In this mode, GT.M detects character boundaries (since the size of a character is variable length), calculates glyph display width, and performs string conversion between UTF-8 and UTF-16.
If you install GT.M with
Unicode support, all GT.M components related to M mode reside in
your GT.M distribution directory and Unicode-related components
reside in the utf8 subdirectory of your GT.M distribution. For
processes in UTF-8 mode, in addition to gtm_chset, ensure that
$gtm_dist points to the utf8 subdirectory, that $gtmroutines
includes the utf8 subdirectory (or the libgtmutil.so therein)
rather than its parent directory.
--
http://groups.google.com/group/Hardhats
To unsubscribe, send email to Hardhats+u...@googlegroups.com
-- GT.M - Rock solid. Lightning fast. Secure. No compromises.