EncodingUtils class

Methods

base64Decode(string)

'utf8': Multibyte encoded Unicode characters. Many web pages and other document formats use UTF-8. 'base64': Base64 encoding.

base64DecodeUrl(string)
base64Encode(string, BufferEncoding)

'utf8': Multibyte encoded Unicode characters. Many web pages and other document formats use UTF-8. 'base64': Base64 encoding.

base64EncodeUrl(string, BufferEncoding)

encode a URL

Method Details

base64Decode(string)

'utf8': Multibyte encoded Unicode characters. Many web pages and other document formats use UTF-8. 'base64': Base64 encoding.

static function base64Decode(base64Str: string): string

Parameters

base64Str

string

Base64 encoded text

Returns

string

base64DecodeUrl(string)

static function base64DecodeUrl(base64Str: string): string

Parameters

base64Str

string

Base64 encoded Url

Returns

string

base64Encode(string, BufferEncoding)

'utf8': Multibyte encoded Unicode characters. Many web pages and other document formats use UTF-8. 'base64': Base64 encoding.

static function base64Encode(str: string, encoding?: BufferEncoding): string

Parameters

str

string

text

encoding

BufferEncoding

Returns

string

base64EncodeUrl(string, BufferEncoding)

encode a URL

static function base64EncodeUrl(str: string, encoding?: BufferEncoding): string

Parameters

str

string

encoding

BufferEncoding

Returns

string