Defining the locale

With Genero BDL, the application locale defines the character encoding to be used at compile time and runtime.

Localization Support is based on the system libraries handling the locale, a set of language and cultural rules.

It is important to understand locale and character set concepts, before writing BDL source code and before deploying the programs on a production site. Database locale settings must also be understood and correctly set. Environment variables such as LANG, LC_ALL, FGL_LENGTH_SEMANTICS need to be defined correctly.

Important:

Make sure to properly define the locale settings for Genero applications and database client software, in your development and runtime/production environments.

To support all possible languages, you want to use UTF-8 character encoding, with character length semantics (FGL_LENGTH_SEMANTICS=CHAR)

To check the locale used by Genero, use the -i option of fglcomp or fglrun command tools:
fglrun -i
Charmap      : UTF-8
Multibyte    : yes
Stateless    : yes
Length Semantics : CHAR

Read carefully the Localization section in the Genero Business Development Language User Guide.