com.HTTPRequest.setCharset

Defines the charset used when sending text or XML.

Syntax

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

Usage

Defines the character set used when sending an HTTP request.

By default, no character set information will be transmitted in the HTTP header. This is also the case when specifying NULL as parameter for this method.

If no character set is specified in HTTP headers, ISO8859-1 will implicitly be used as defined by the HTTP standards.

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