我已经在我的笔记本电脑上安装了 WAMP,并且我已经创建了一个 mysql 表
CREATE TABLE `users` (
`uname` varchar(20) NOT NULL,
`pass` varchar(20) DEFAULT NULL,
PRIMARY KEY (`uname`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
插入印地语 unicode 时
SET NAMES utf8;
insert into users(uname, pass) values ('सूरज','abc');
此处显示表格的内容
the unicode word सूरज does not shown properly. where i have done wrong ?
最佳答案
Here the problem is the SQL admin program like toadformysql, mysql-workbench-community etc. is not compatible to insert the unicode characters properly. Other program like SQLyog, phpMyAdmin etc. provide compatibility to insert the unicode characters properly into the mysql table/database.
The solution for this problem is to use the compatible SQL Admin application
关于mysql - 如何在mysql中正确存储和显示unicode,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46609096/