2
に正しく保存されていない特定のcharachter私は私が持っている私のJSPページ内のjavaアプリケーション、 を持っている:のMySQL、データベース
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
...
function addToDB(){
jQuery.post(document.myForm.action=getContextPath()+'/myAction.do?method=create' ,
jQuery("form[name='myForm']").serialize(), function(data) {
jQuery("#myDiv").show();
});
}
...
<nested:text property="productName" />
<nested:text property="productOwner" />
...
私は次のように入力します
商品名:マイプロダクト
プロダクトオーナー:Mai
データベースには次のものがあります:Mäyの代わりにMyy
なぜ正しく保存されないのですか?
データベースの文字セットは何ですか? –
character_set_database \t utf8 – junior
カラム、テーブル、データベースの照合順序がすべてutf8_unicode_ciまたはutf8_general_ciに設定されているかどうかを確認できますか? –