com.HTTPRequest.setCharset

Defines the charset used when sending text or XML.

Syntax

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

Usage

Defines the character set used when sending text or XML.

By default no character set is defined.

When sending text, HTTP specification defines ISO-8859-1 as an implicit character set.

When sending XML, the user-defined character set is used instead of the one set in the XML document itself, which can lead to a charset conversion error at the server side. It is recommended that you unset it by setting charset to NULL, or that you use the same character set that was set in the XML Document.