json.JSONReader.setInputCharset

Defines the charset used on the input stream.

Syntax

setInputCharset(
   charset STRING )
  1. charset defines the character set to use.

Usage

Defines the character set used when decoding on the input 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).