json.JSONWriter.setOutputCharset

Defines the charset used on the output stream. By default the charset is based on the charset set by the system. For example, on Windows® it is Windows-1252, or on some Linux® systems it is UTF-8.

Syntax

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

Usage

Defines the character set used when encoding on the ouput stream.

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).