Documentation

ECICharset
in package

FinalYes

ISO/IEC 18004:2000 - 8.4.1 Extended Channel Interpretation (ECI) Mode

Table of Contents

Constants

BIG5  : int = 28
CP437  : int = 0
CP437_WO_GLI  : int = 2
EUC_KR  : int = 30
GB18030  : int = 29
ISO_IEC_10646_UCS_2  : int = 25
ISO_IEC_10646_UTF_8  : int = 26
ISO_IEC_646_1991  : int = 27
ISO_IEC_8859_1  : int = 3
ISO_IEC_8859_10  : int = 12
ISO_IEC_8859_11  : int = 13
ISO_IEC_8859_13  : int = 15
ISO_IEC_8859_14  : int = 16
ISO_IEC_8859_15  : int = 17
ISO_IEC_8859_16  : int = 18
ISO_IEC_8859_1_GLI  : int = 1
ISO_IEC_8859_2  : int = 4
ISO_IEC_8859_3  : int = 5
ISO_IEC_8859_4  : int = 6
ISO_IEC_8859_5  : int = 7
ISO_IEC_8859_6  : int = 8
ISO_IEC_8859_7  : int = 9
ISO_IEC_8859_8  : int = 10
ISO_IEC_8859_9  : int = 11
MB_ENCODINGS  : array<string|int, mixed> = [ self::CP437 => null, self::ISO_IEC_8859_1_GLI...
map of charset id -> name
SHIFT_JIS  : int = 20
WINDOWS_1250_LATIN_2  : int = 21
WINDOWS_1251_CYRILLIC  : int = 22
WINDOWS_1252_LATIN_1  : int = 23
WINDOWS_1256_ARABIC  : int = 24

Properties

$charsetID  : int
The current ECI character set ID

Methods

__construct()  : mixed
getName()  : string|null
Returns the name of the current character set or null if no name is available

Constants

ISO_IEC_10646_UCS_2

public int ISO_IEC_10646_UCS_2 = 25

ISO_IEC_10646_UTF_8

public int ISO_IEC_10646_UTF_8 = 26

ISO_IEC_646_1991

public int ISO_IEC_646_1991 = 27

ISO_IEC_8859_1_GLI

public int ISO_IEC_8859_1_GLI = 1

MB_ENCODINGS

map of charset id -> name

public array<string|int, mixed> MB_ENCODINGS = [ self::CP437 => null, self::ISO_IEC_8859_1_GLI => null, self::CP437_WO_GLI => null, self::ISO_IEC_8859_1 => 'ISO-8859-1', self::ISO_IEC_8859_2 => 'ISO-8859-2', self::ISO_IEC_8859_3 => 'ISO-8859-3', self::ISO_IEC_8859_4 => 'ISO-8859-4', self::ISO_IEC_8859_5 => 'ISO-8859-5', self::ISO_IEC_8859_6 => 'ISO-8859-6', self::ISO_IEC_8859_7 => 'ISO-8859-7', self::ISO_IEC_8859_8 => 'ISO-8859-8', self::ISO_IEC_8859_9 => 'ISO-8859-9', self::ISO_IEC_8859_10 => 'ISO-8859-10', self::ISO_IEC_8859_11 => null, self::ISO_IEC_8859_13 => 'ISO-8859-13', self::ISO_IEC_8859_14 => 'ISO-8859-14', self::ISO_IEC_8859_15 => 'ISO-8859-15', self::ISO_IEC_8859_16 => 'ISO-8859-16', self::SHIFT_JIS => 'SJIS', self::WINDOWS_1250_LATIN_2 => null, // @see https://www.php.net/manual/en/function.mb-convert-encoding.php#112547 self::WINDOWS_1251_CYRILLIC => 'Windows-1251', self::WINDOWS_1252_LATIN_1 => 'Windows-1252', self::WINDOWS_1256_ARABIC => null, // @see https://stackoverflow.com/a/8592995 self::ISO_IEC_10646_UCS_2 => 'UTF-16BE', self::ISO_IEC_10646_UTF_8 => 'UTF-8', self::ISO_IEC_646_1991 => 'ASCII', self::BIG5 => 'BIG-5', self::GB18030 => 'GB18030', self::EUC_KR => 'EUC-KR', ]
Tags
see
mb_list_encodings()

WINDOWS_1250_LATIN_2

public int WINDOWS_1250_LATIN_2 = 21

WINDOWS_1251_CYRILLIC

public int WINDOWS_1251_CYRILLIC = 22

WINDOWS_1252_LATIN_1

public int WINDOWS_1252_LATIN_1 = 23

WINDOWS_1256_ARABIC

public int WINDOWS_1256_ARABIC = 24

Properties

$charsetID

The current ECI character set ID

public private(set) int $charsetID

Methods

getName()

Returns the name of the current character set or null if no name is available

public getName() : string|null
Tags
see
mb_convert_encoding()
iconv()
Return values
string|null
On this page

Search results