AsciiCodec
in package
implements
Codec
FinalYes
Table of Contents
Interfaces
- Codec
- Converts between one character encoding and UTF-8.
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|nulldecodeLossy()
Decodes to UTF-8, replacing every invalid or undefined sequence with U+FFFD.
public
decodeLossy(string $bytes) : string
Parameters
- $bytes : string
Return values
stringencode()
public
encode(string $utf8) : string
Parameters
- $utf8 : string