MySQL 与日语字符
我试图弄清楚如何创建一个表,以便我可以在其中插入日语名字。现在我有:
Type: InnoDB
Encoding: UTF-8 Unicode (utf8)
Collation: utf8_general_ci
但是,当我插入字符时,它显示为 ????
。当我使用 SELECT
检索数据时,它也显示为 ????
。我需要做什么才能正确存储和检索日语字符(汉字、平假名和片假名)?
I am trying to figure out how to create a table such that I can insert Japanese names into it. Right now I have:
Type: InnoDB
Encoding: UTF-8 Unicode (utf8)
Collation: utf8_general_ci
However, when I insert the characters, it shows up as ????
. And when I retrieve the data using SELECT
, it also shows up as ????
. What do I need to do such that I can properly store and retrieve Japanese characters (kanji, hiragana, and katakana)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对
charset
utf8
进行ALTER
解决了该问题:Doing an
ALTER
tocharset
utf8
solved the issue: