The HTTPServiceRequest class / com.HTTPServiceRequest methods |
Defines the HTTP response character set.
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.