Converts a string to a binary representation.
charsetDecode(string, encoding)
returns binary
Name | Type | Required | Default | Description | Values | |
---|---|---|---|---|---|---|
string | string | Yes | A string containing data to encode in binary format. | |||
encoding | string | Yes | A string specifying encoding of the input data. | /Users/garethedwards/development/github/cfdocs/docs/functions/charsetdecode.md | utf-16 |
Use charsetDecode to decode with utf-8
charsetDecode('string','utf-8');
Use charsetDecode to decode with us-ascii
charsetDecode('string','us-ascii');