mysql - 将日文字符插入到 latin1_swedish_ci 整理的 mysql 表列中
问题描述
日文字符被替换为??? 我不允许更改表/列的排序规则。如何插入这些值?
MariaDB [company]> show full columns from test_table_latin1;
+-------+-------------+-------------------+------+-----+---------+-------+---------------------------------+---------+
| Field | Type | Collation | Null | Key | Default | Extra | Privileges | Comment |
+-------+-------------+-------------------+------+-----+---------+-------+---------------------------------+---------+
| id | int(5) | NULL | YES | | NULL | | select,insert,update,references | |
| data | varchar(20) | latin1_swedish_ci | YES | | NULL | | select,insert,update,references | |
+-------+-------------+-------------------+------+-----+---------+-------+---------------------------------+---------+
2 rows in set (0.00 sec)
MariaDB [company]> insert into test_table_latin1 values (4,'Was sent 検索キーワード - 自然');
Query OK, 1 row affected, 1 warning (0.00 sec)
MariaDB [company]> select * from test_table_latin1 where id=4;
+------+----------------------+
| id | data |
+------+----------------------+
| 4 | Was sent ??????? - ? |
+------+----------------------+
1 row in set (0.00 sec)
解决方案
推荐阅读
- javascript - 变量等于元素内的文本
- reactjs - Jest 模拟从实用程序文件导入
- linux - 未找到 Linux NSwag NPM CLI 框架 Microsoft.NETCore.App 版本 2.1.0
- java - 使用 Exynap 时插件连接错误
- python - 如何从python中的嵌套循环制作表格到html
- python - 如何打印文本文件的某些部分?Python
- python - python中的谷歌身份验证
- macros - 将 Solidworks 零件保存为 dxf 文件的宏
- boto3 - 如何使用 boto3 列出 CloudWatch 指标
- java - 为什么这个程序在循环结束时不输出一个整数?