〜を文字化けさせないためには
- request.setCharacterEncoding("Windows-31J");
- <%@ page contentType="text/html; charset=Windows-31J" %>
- <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
- jdbc:mysql://localhost/dbName?useUnicode=true&characterEncoding=Windows-31J
こんなエンコーディングに統一すればOK。JDBC URLのcharacterEncodingはMySQLが持ってるキャラクタセットしか設定できないと思い込んでましたけど、普通に指定できたんですね。