THE ORIONIS API
Build with clarity.
Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.
class documentation
class MySQLCharset(Enum): (source)
Enumerate MySQL character sets usable by the configured connection drivers.
The list follows MySQL 8.4 client-compatible character sets that map to Python codecs used by PyMySQL and aiomysql. It excludes server character sets without a matching Python codec and ucs2, utf16, utf16le, and utf32, which MySQL forbids as client connection character sets.
| Returns | |
MySQLCharset | The enumeration member representing a MySQL connection character set. |
| Constant | ASCII |
US ASCII. |
| Constant | BIG5 |
Big5 Traditional Chinese. |
| Constant | CP1250 |
Windows Central European. |
| Constant | CP1251 |
Windows Cyrillic. |
| Constant | CP1256 |
Windows Arabic. |
| Constant | CP1257 |
Windows Baltic. |
| Constant | CP850 |
DOS West European. |
| Constant | CP852 |
DOS Central European. |
| Constant | CP866 |
DOS Russian. |
| Constant | CP932 |
SJIS for Windows Japanese. |
| Constant | EUCKR |
EUC-KR Korean. |
| Constant | GB18030 |
GB18030 Chinese national standard. |
| Constant | GB2312 |
GB2312 Simplified Chinese. |
| Constant | GBK |
GBK Simplified Chinese. |
| Constant | GREEK |
ISO 8859-7 Greek. |
| Constant | HEBREW |
ISO 8859-8 Hebrew. |
| Constant | KOI8R |
KOI8-R Relcom Russian. |
| Constant | KOI8U |
KOI8-U Ukrainian. |
| Constant | LATIN1 |
cp1252 West European. |
| Constant | LATIN2 |
ISO 8859-2 Central European. |
| Constant | LATIN5 |
ISO 8859-9 Turkish. |
| Constant | LATIN7 |
ISO 8859-13 Baltic. |
| Constant | MACROMAN |
Mac West European. |
| Constant | SJIS |
Shift-JIS Japanese. |
| Constant | TIS620 |
TIS620 Thai. |
| Constant | UJIS |
EUC-JP Japanese. |
| Constant | UTF8 |
Deprecated MySQL alias for UTF8MB3; use UTF8MB4 for new connections. |
| Constant | UTF8MB3 |
Deprecated UTF-8 Unicode limited to three bytes per character. |
| Constant | UTF8MB4 |
UTF-8 Unicode with up to four bytes per character. |