changeCharset
Function: changeCharset()
Interprets the incoming binary string using the specified character set. Auto-detection of the charset is supported by providing a value of "auto" or "null" in the charset parameter.
Syntax
changeCharset(value, charset)
Argument | Type | Description |
---|---|---|
value | String | Input value treated as a binary string. |
charset | String | charset the value is converted to. The following options are available:
|
Examples
changeCharset(in.body, "auto")
Where in.body
has been read from another source. Returns a string automatically detecting the best charset.