Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于mysql存储emoji图标问题 #526

Closed
cctczyg opened this issue Nov 5, 2020 · 4 comments
Closed

关于mysql存储emoji图标问题 #526

cctczyg opened this issue Nov 5, 2020 · 4 comments
Labels
docs This is a document question Further information is requested

Comments

@cctczyg
Copy link

cctczyg commented Nov 5, 2020

大佬,咨询一下,我的用户表中有一个存储emoji图标的Nick字段,用的utf8mb4_general_ci字符集,未存储数据时,程序启动不会报错,但存储了一条数据之后,程序启动时初始化报以下错:

ALTER TABLE xxx.UserInfo MODIFY Nick NVARCHAR(50);
Incorrect string value: '\xF0\x9F\x94\xA5\xF0\x9F...' for column 'Nick' at row 2

这是最近升级到1.10.1后出现的,以前没有这个问题,是不是有新套路了?谢谢

@luoyunchong
Copy link
Collaborator

把表的结构改成utf8mb4_general_ci

@cctczyg
Copy link
Author

cctczyg commented Nov 5, 2020

改了照旧

@2881099
Copy link
Collaborator

2881099 commented Nov 5, 2020

1.10.1 没有这方面的功能修改

@luoyunchong
Copy link
Collaborator

连接串字符指定utf8mb4 @cctczyg

Charset=utf8mb4;

@luoyunchong luoyunchong added the question Further information is requested label Nov 8, 2020
@luoyunchong luoyunchong added the docs This is a document label Jul 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs This is a document question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants