EncodingUtils

Utilities related to string and text character encoding, converting between formats, and perform common encoding operations.

package

Default

Methods

Convert a string with unicode escaped sequence of characters (\u00ed, \u0110, .

unicodeEscapedCharsToUtf8(string $string) : string
static

...) to an utf8 string.

Arguments

$string

string

A string containing unicode escaped characters.

Response

string

An utf8 string conversion of the unicode encoded input.

Convert a utf8 string to a string with unicode escaped sequence of characters (\u00ed, \u0110, .

utf8ToUnicodeEscapedChars(string $string) : string
static

..).

Arguments

$string

string

A string containing an utf8 valid sequence.

Response

string

A string containing escaped sequences for all the original utf8 characters