Mysql doesn't display right single quotation mark(’) after inserted into table

萝らか妹 提交于 2019-12-22 12:27:10

问题



I have a table called "Testing". I inserted a row which contains unicode character right single quotation (') 0x2019 in name field.
SQL :

 //insert into Testing values(Sno,Name,Address)    
   insert into Testing values(1,"**Rajesh’s Friend**","Cumbum");

When listing the same row in Mysql Query Browser or CommandLine. It displays as a normal ANSI character(') instead of being unicode character.

I want to display the same unicode character in MySQL table.


回答1:


You can try ALTER TABLE Testing COLLATE='utf8_unicode_ci'; to change the encoding.



来源:https://stackoverflow.com/questions/12387529/mysql-doesnt-display-right-single-quotation-mark-after-inserted-into-table

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!