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 3 Next »



Function: changeCharset()

Converts a binary string into one with the appropriate charset.

Supports auto detection if a value of "auto" or "null" is provided.

Syntax

changeCharset(value, charset)

ArgumentTypeDescription
valueStringInput value treated as a binary string
charsetStrnig

Target charset to convert to.

"auto": automatically detects
"default": use platform default
"binary": treat 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.


See Also

  • No labels