Declarations and Functions Overview | Statement List


Support for Internationalized Characters

GRIP supports non-ASCII strings in addition to ASCII strings, which enables GRIP to support internationalized characters. Mixed ASCII and non-ASCII strings are also supported.

Internationalized characters are applied in NX Open GRIP programs by using a source file with a UTF-8 starting byte order mark (BOM), thereby enabling GRIP programs to use any character. The BOM is a series of bytes at the beginning of a text file that specifies the encoding of the data contained in the text file and a specific BOM signature marks the text file as containing UTF-8 data. If this signature is not present, the file contains local data.

Without the UTF-8 BOM file, GRIP programs can still use any characters in the user's locale. However, GRIP was not enhanced to the new character-based string lengths provided for UTF-8 functionality, and GRIP programs still enforce byte-based limits on data. For example, string variables are limited to 256 bytes.

Enhanced Functions

The following functions were enhanced to enable GRIP programs to support internationalized characters while still providing existing behavior when dealing with ASCII data.