Insert Chinese Special Character gibberish ???
Posted by: jianjun yang
Date: July 08, 2014 08:09PM

Hello, Everybody. I Want to ask you a question? thanks.

We use Windows clicent , character set is GBK.
Server is Linux, MySQL 5.6.17 community edition, database character set is utf8.

SHOW VARIABLES LIKE 'character%'

Variable_name Value
------------------------------------------
character_set_client utf8
character_set_connection utf8
character_set_database utf8
character_set_filesystem binary
character_set_results utf8
character_set_server utf8
character_set_system utf8
--------------------------------------------

When insert Standard Chinese character, data show normal.
e.g.
create table testgbk(nm varchar(20) charset utf8);
insert into testgbk values('测试'),('我们’);
select * from testgbk;

result:
测试
我们

When insert Special Chinese character:  , ,  ,, data show gibberish.
insert into testgbk values(''),('');

result:
?
?

Options: ReplyQuote


Subject
Views
Written By
Posted
Insert Chinese Special Character gibberish ???
3314
July 08, 2014 08:09PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.