Dav*_*542 4 python mysql unicode encoding character-encoding
我试图弄清楚如何创建一个表,以便我可以在其中插入日语名字。现在我有:
Type: InnoDB
Encoding: UTF-8 Unicode (utf8)
Collation: utf8_general_ci
Run Code Online (Sandbox Code Playgroud)
但是,当我插入字符时,它显示为????。当我使用 检索数据时SELECT,它也显示为????。我需要做什么才能正确存储和检索日语字符(汉字、平假名和片假名)?
做一个ALTER来charset utf8解决这个问题:
ALTER TABLE title MODIFY
column VARCHAR (100)
CHARACTER SET utf8
COLLATE utf8_unicode_ci;
Run Code Online (Sandbox Code Playgroud)