json.JSONWriter.setOutputCharset
Defines the charset used on the output stream. In Windows®, the system character set is based
on the language settings. In Linux®, the
locale is defined by the LANG and LC_ALL variables, and you can check the system locale with the
localctl
command, especially on Debian-based
systems.
Syntax
setOutputCharset(
charset STRING )
- charset defines the character set to use.
Usage
Defines the character set used when encoding on the ouput stream.
The character set in use may be defined by the LANG or LC_ALL variables in both Linux and Windows. In Linux, you can check the system locale with the localctl command, especially on Debian-based systems.
In Windows, when the LANG environment variable is undefined, the language and character set defaults to the system locale which is defined by the system's regional settings. When the LANG environment variable is defined, the Genero compilers and runtime system will use this variable.
In case of error, the method throws an exception and sets the
status
variable. Depending on the error, a human-readable description of the
problem is available in the sqlca.sqlerrm
register. See Error handling in GWS calls (status).