Korin API

Codec
in

Converts between one character encoding and UTF-8.

Table of Contents

Methods

decode()  : string|null
Decodes to UTF-8, or returns null when the bytes are not valid in this encoding.
decodeLossy()  : string
Decodes to UTF-8, replacing every invalid or undefined sequence with U+FFFD.
encode()  : string

Methods

decode()

Decodes to UTF-8, or returns null when the bytes are not valid in this encoding.

public decode(string $bytes) : string|null
Parameters
$bytes : string
Return values
string|null

decodeLossy()

Decodes to UTF-8, replacing every invalid or undefined sequence with U+FFFD.

public decodeLossy(string $bytes) : string
Parameters
$bytes : string
Return values
string
On this page

Search results