Skip to content
PHP Ecosystem
Explore

Charset

API reference › HTML Attribute › Values › Charset

enumUIAwesome\Html\Attribute\Values\Charset
Backed bystring
Sourcesrc/Values/Charset.php

Represents character encoding values for the HTML charset attribute.

See also: https://www.iana.org/assignments/character-sets/character-sets.xhtml, https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/meta#charset.

CaseValueDescription
BIG5'big5'big5 — Traditional Chinese (Big5).
EUC_JP'euc-jp'euc-jp — Japanese (EUC-JP).
EUC_KR'euc-kr'euc-kr — Korean (EUC-KR).
GB2312'gb2312'gb2312 — Simplified Chinese (GB2312).
GBK'gbk'gbk — Simplified Chinese (GBK/GBX).
ISO_2022_JP'iso-2022-jp'iso-2022-jp — Japanese (ISO-2022-JP).
ISO_8859_1'iso-8859-1'iso-8859-1 — Latin-1 (Western European).
ISO_8859_15'iso-8859-15'iso-8859-15 — Latin-9 (Western European with Euro sign).
ISO_8859_2'iso-8859-2'iso-8859-2 — Latin-2 (Central European).
ISO_8859_6'iso-8859-6'iso-8859-6 — Latin/Arabic.
ISO_8859_7'iso-8859-7'iso-8859-7 — Greek.
ISO_8859_8'iso-8859-8'iso-8859-8 — Latin/Hebrew.
ISO_8859_9'iso-8859-9'iso-8859-9 — Latin-5 (Turkish).
KOI8_R'koi8-r'koi8-r — Russian (KOI8-R).
KOI8_U'koi8-u'koi8-u — Ukrainian (KOI8-U).
SHIFT_JIS'shift_jis'shift_jis — Japanese (Shift JIS).
UTF_16'utf-16'utf-16 — Unicode UTF-16 encoding.
UTF_16BE'utf-16be'utf-16be — Unicode UTF-16 Big Endian.
UTF_16LE'utf-16le'utf-16le — Unicode UTF-16 Little Endian.
UTF_32'utf-32'utf-32 — Unicode UTF-32 encoding.
UTF_32BE'utf-32be'utf-32be — Unicode UTF-32 Big Endian.
UTF_32LE'utf-32le'utf-32le — Unicode UTF-32 Little Endian.
UTF_8'utf-8'utf-8 — Unicode UTF-8 encoding (the only valid encoding for HTML5 documents).
WINDOWS_1251'windows-1251'windows-1251 — Windows Cyrillic.
WINDOWS_1252'windows-1252'windows-1252 — Windows Latin-1 (Western European).
WINDOWS_1253'windows-1253'windows-1253 — Windows Greek.
WINDOWS_1254'windows-1254'windows-1254 — Windows Turkish.
WINDOWS_1255'windows-1255'windows-1255 — Windows Hebrew.
WINDOWS_1256'windows-1256'windows-1256 — Windows Arabic.