CharsetEncode

Uses the specified encoding to convert binary data to a string.

Returns: string

Usage

CharsetEncode( binary, encoding )

Arguments

Argument Description
binary
(binary, required)

A variable containing binary data to decode into text.

encoding
(string, required)

The character encoding that was used to encode the string into binary format.

Examples

decoded = CharsetDecode("I am a string.", "utf-8"); 
dump(CharsetEncode(decoded, "utf-8")); // "I am a string"