MySQL 查询显示类似于 0x8081 而不是特殊字符

MySQL query shows something like 0x8081 instead of special characters

当我运行SELECT CHAR(128,129,130,131,132,133,134,135,136,137);

我得到了 0x80818283848586878889 而不是 Çüéâäàåçêë

有人知道为什么吗?

我正在使用字符集 utf8mb4

当我运行show variables like '%char%';我得到

+--------------------------------------+--------------------------------+
| Variable_name                        | Value                          |
+--------------------------------------+--------------------------------+
| character_set_client                 | utf8mb4                        |
| character_set_connection             | utf8mb4                        |
| character_set_database               | utf8mb4                        |
| character_set_filesystem             | binary                         |
| character_set_results                | utf8mb4                        |
| character_set_server                 | utf8mb4                        |
| character_set_system                 | utf8mb3                        |
| character_sets_dir                   | /usr/share/mysql-8.0/charsets/ |
| validate_password.special_char_count | 1                              |
+--------------------------------------+--------------------------------+

我正在使用 MySQL 版本 8.0.26

输出字符集是“DOS 西欧”

使用此查询,它将以字符集“DOS West European”显示文本

SELECT CHAR(128,129,130,131,132,133,134,135,136,137 using cp850)