GAS System Encoding

The Genero Application Server interacts with the operating system in various ways.

For example, the Genero Application Server:

In these cases and more, the Genero Application Server needs to know which encoding is used by the operating system. The operating system encoding is defined via environment variables as described in The Single UNIX™ - Specification Version 2 - Locale.

Start with th_TH.tis620 (Thai) locale

Starting the Genero Application Server from the command line with 'TIS-620' system encoding (Thai locale):

LC_ALL=th_TH.tis620 httpdispatch

Start with UTF-8

Locales supported by an operating system can be displayed with command locale-a. If the operating system doesn't support the desired encoding, or if a specific encoding is needed, the system encoding can be defined with the FGLAS_SYSENCODING environment variable which overrides system locales.

Starting the Genero Application Server from the command line with 'UTF-8' system encoding:

LC_ALL=th_TH.tis620 FGLAS_SYSENCODING=UTF-8 httpdispatch

Note: Encodings have different names across Operating Systems. To unify them, GAS manages an encoding name conversion. For each UNIX platform, a charset.alias file is provided for mapping the Operating System encoding name to a canonical encoding name.