Documentation Home
MySQL 9.4 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 41.2Mb
PDF (A4) - 41.3Mb
Man Pages (TGZ) - 262.8Kb
Man Pages (Zip) - 368.8Kb
Info (Gzip) - 4.1Mb
Info (Zip) - 4.1Mb


MySQL 9.4 Reference Manual  / ...  / Character Sets, Collations, Unicode  / Adding a Character Set  /  Multi-Byte Character Support for Complex Character Sets

12.13.3 Multi-Byte Character Support for Complex Character Sets

If you want to add support for a new character set namedMYSET that includes multibyte characters, you must use multibyte character functions in thectype-MYSET.c source file in thestrings directory.

The existing character sets provide the best documentation and examples to show how these functions are implemented. Look at thectype-*.c files in thestrings directory, such as the files for theeuc_kr,gb2312,gbk,sjis, andujis character sets. Take a look at theMY_CHARSET_HANDLER structures to see how they are used. See also theCHARSET_INFO.txt file in thestrings directory for additional information.