mysql - 如何在mysql中正确存储和显示unicode

标签 mysql unicode

我已经在我的笔记本电脑上安装了 WAMP,并且我已经创建了一个 mysql 表

CREATE TABLE `users` (
  `uname` varchar(20) NOT NULL,
  `pass` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`uname`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

此处显示表的列属性 enter image description here 当我使用

插入印地语 unicode 时
SET NAMES utf8;
insert into users(uname, pass) values ('सूरज','abc');

此处显示表格的内容

enter image description here

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/

相关文章:

mysql - 从多个具有相同列名的表创建一个新表,而不声明列名

php - sql更新不执行

java - Unicode 代码点和 java 字符

python - 获取 143.859 Unicode 标准版本 13.0.0 字符的列表

unicode - 如何在 Python 3.2 中生成二进制 RFC822 样式的 header ?

javascript - 如何转换 2015年11月18日 12 :00:00 GMT+0530 (Sri Lanka Standard Time) to (yyyy-MM-dd HH-mm-ss) format in javascript

mysql - 纯SQL迁移表

language-agnostic - 如何设置mysql的语言环境?

c# - T4 模板另存为 Unicode

mysql - 如何在sql中排除具有某些值的记录