Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »



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)

ArgumentTypeDescription
valueStringInput value treated as a binary string.
charsetString

charset the value is converted to. The following options are available:

  • "auto", automatically detects
  • "default", uses the platform default
  • "binary", treats the input as a binary string
  • "UTF-8", utf-8
  • "UTF-16", utf-16
  • "US-ASCII", ascii

Examples

changeCharset(in.body, "auto")

Where in.body has been read from another source. Returns a string automatically detecting the best charset.

  • No labels