ECICharset
in package
FinalYes
ISO/IEC 18004:2000 - 8.4.1 Extended Channel Interpretation (ECI) Mode
Table of Contents
Constants
- BIG5 = 28
- CP437 = 0
- CP437_WO_GLI = 2
- EUC_KR = 30
- GB18030 = 29
- ISO_IEC_10646_UCS_2 = 25
- ISO_IEC_10646_UTF_8 = 26
- ISO_IEC_646_1991 = 27
- ISO_IEC_8859_1 = 3
- ISO_IEC_8859_10 = 12
- ISO_IEC_8859_11 = 13
- ISO_IEC_8859_13 = 15
- ISO_IEC_8859_14 = 16
- ISO_IEC_8859_15 = 17
- ISO_IEC_8859_16 = 18
- ISO_IEC_8859_1_GLI = 1
- ISO_IEC_8859_2 = 4
- ISO_IEC_8859_3 = 5
- ISO_IEC_8859_4 = 6
- ISO_IEC_8859_5 = 7
- ISO_IEC_8859_6 = 8
- ISO_IEC_8859_7 = 9
- ISO_IEC_8859_8 = 10
- ISO_IEC_8859_9 = 11
- 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', ]
- map of charset id -> name
- SHIFT_JIS = 20
- WINDOWS_1250_LATIN_2 = 21
- WINDOWS_1251_CYRILLIC = 22
- WINDOWS_1252_LATIN_1 = 23
- WINDOWS_1256_ARABIC = 24
Properties
- $charsetID : int
- The current ECI character set ID
Methods
- __construct() : mixed
- getID() : int
- Returns the current character set ID
- getName() : string|null
- Returns the name of the current character set or null if no name is available
Constants
BIG5
public
mixed
BIG5
= 28
CP437
public
mixed
CP437
= 0
CP437_WO_GLI
public
mixed
CP437_WO_GLI
= 2
EUC_KR
public
mixed
EUC_KR
= 30
GB18030
public
mixed
GB18030
= 29
ISO_IEC_10646_UCS_2
public
mixed
ISO_IEC_10646_UCS_2
= 25
ISO_IEC_10646_UTF_8
public
mixed
ISO_IEC_10646_UTF_8
= 26
ISO_IEC_646_1991
public
mixed
ISO_IEC_646_1991
= 27
ISO_IEC_8859_1
public
mixed
ISO_IEC_8859_1
= 3
ISO_IEC_8859_10
public
mixed
ISO_IEC_8859_10
= 12
ISO_IEC_8859_11
public
mixed
ISO_IEC_8859_11
= 13
ISO_IEC_8859_13
public
mixed
ISO_IEC_8859_13
= 15
ISO_IEC_8859_14
public
mixed
ISO_IEC_8859_14
= 16
ISO_IEC_8859_15
public
mixed
ISO_IEC_8859_15
= 17
ISO_IEC_8859_16
public
mixed
ISO_IEC_8859_16
= 18
ISO_IEC_8859_1_GLI
public
mixed
ISO_IEC_8859_1_GLI
= 1
ISO_IEC_8859_2
public
mixed
ISO_IEC_8859_2
= 4
ISO_IEC_8859_3
public
mixed
ISO_IEC_8859_3
= 5
ISO_IEC_8859_4
public
mixed
ISO_IEC_8859_4
= 6
ISO_IEC_8859_5
public
mixed
ISO_IEC_8859_5
= 7
ISO_IEC_8859_6
public
mixed
ISO_IEC_8859_6
= 8
ISO_IEC_8859_7
public
mixed
ISO_IEC_8859_7
= 9
ISO_IEC_8859_8
public
mixed
ISO_IEC_8859_8
= 10
ISO_IEC_8859_9
public
mixed
ISO_IEC_8859_9
= 11
MB_ENCODINGS
map of charset id -> name
public
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
SHIFT_JIS
public
mixed
SHIFT_JIS
= 20
WINDOWS_1250_LATIN_2
public
mixed
WINDOWS_1250_LATIN_2
= 21
WINDOWS_1251_CYRILLIC
public
mixed
WINDOWS_1251_CYRILLIC
= 22
WINDOWS_1252_LATIN_1
public
mixed
WINDOWS_1252_LATIN_1
= 23
WINDOWS_1256_ARABIC
public
mixed
WINDOWS_1256_ARABIC
= 24
Properties
$charsetID
The current ECI character set ID
private
int
$charsetID
Methods
__construct()
public
__construct(int $charsetID) : mixed
Parameters
- $charsetID : int
Tags
getID()
Returns the current character set ID
public
getID() : int
Return values
intgetName()
Returns the name of the current character set or null if no name is available
public
getName() : string|null