mysql - 如何保存ñ [英] mysql - How to save ñ
本文介绍了mysql - 如何保存ñ的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
每当我尝试保存ñ
时,它会在mysql数据库中变成?
。在几个读数后,建议我必须更改我的jsp字符集为 UTF-8
。由于某些原因,我必须坚持 ISO-8859-1
。我的数据库表编码是 latin1
。如何解决这个问题?请帮助。
Whenever I try to save ñ
it becomes ?
in the mysql database. After some few readings it is suggested that I have to change my jsp charset to UTF-8
. For some reasons I have to stick to ISO-8859-1
. My database table encoding is latin1
. How can I fix this? Please help.
推荐答案
使用 MySQL WorkBench
转到您的数据库管理例如,将引擎置于 InnoDB
和排序规则 utf8-utf8_general_ci
。
Go to your database administration with MySQL WorkBench
for example, put the Engine to InnoDB
and the collation to utf8-utf8_general_ci
.
这篇关于mysql - 如何保存ñ的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文