com.HTTPServiceRequest.setResponseCharset

Defines the HTTP response character set.

Syntax

setResponseCharset(
   charset STRING )
  1. charset is the HTTP response character set.

Usage

The setResponseCharset() method defines the character set to use when sending XML or Text.

If not set, the same character set as the request is used, or the implicit ISO-8859-1 when responding TEXT.

The method must be called before sending the response with one of sendResponse, sendTextResponse, sendXmlResponse, or beginXmlResponse and endXmlResponse methods.

In case of error, the method throws an exception and sets the STATUS variable with the appropriate error number.