8.4 中文镜像

MySQL 8.4 参考手册 · 中文镜像

正文为中文,英文原文默认隐藏。点击任意中文段落即可展开 / 收起对应英文原文。

打开官方英文原文 ↗

译文由机器翻译生成,仅供理解参考;有疑问请以官方英文原文为准。

MySQL 8.4 参考手册 / 12 种字符集、排序规则、Unicode / 12.13 添加字符集 / 12.13.3 复杂字符集的多字节字符支持
中文点击中文段落可显示 / 隐藏英文原文本页译文覆盖 100%

12.13.3 复杂字符集的多字节字符支持12.13.3 Multi-Byte Character Support for Complex Character Sets

如果您想为名为 MYSET 的新字符集添加支持,该字符集包含多字节字符,则必须在 strings 目录下的 ctype-MYSET.c 源文件中使用多字节字符函数。If you want to add support for a new character set named MYSET that includes multibyte characters, you must use multibyte character functions in the ctype-MYSET.c source file in the strings directory.

现有的字符集提供了最好的文档和示例来展示这些函数是如何实现的。请查看 strings 目录下的 ctype-*.c 文件,例如 euc_kr、gb2312、gbk、sjis 和 ujis 字符集的文件。看看 MY_CHARSET_HANDLER 结构体,了解它们是如何使用的。有关更多信息,请参见 strings 目录下的 CHARSET_INFO.txt 文件。The existing character sets provide the best documentation and examples to show how these functions are implemented. Look at the ctype-*.c files in the strings directory, such as the files for the euc_kr, gb2312, gbk, sjis, and ujis character sets. Take a look at the MY_CHARSET_HANDLER structures to see how they are used. See also the CHARSET_INFO.txt file in the strings directory for additional information.