I want to store Indian language(Telugu) in my database table.But it is displaying ???? while inserting Telugu data into my table.I have verified some thing like below
SHOW VARIABLES LIKE ‘character_set_system’;
It displaying the output like Character_set_system| UTF8
Character_set_system| UTF8
.
After that i have altered my talbe
alter table lang modify characters varchar(12) character set utf8;
still do i need anything for that.
Append characterEncoding=UTF-8
at the end of the database URL like this
jdbc:mysql://localhost/test?characterEncoding=UTF-8
Before that set utf8_general_ci
in your table column.
对特定字段使用数据库中的排序规则并设置utf8_general_ci。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.