String encoding = request.getCharacterEncoding();
if(encoding == null) {
encoding = "ISO_8859_1";
}
byte[] b = request.getParameter(parameterName).getBytes(encoding);
String parameterValue = new String(b, "UTF-8");
[1] 日本語パラメータの対応(getBytes)
String encoding = request.getCharacterEncoding();
if(encoding == null) {
encoding = "ISO_8859_1";
}
byte[] b = request.getParameter(parameterName).getBytes(encoding);
String parameterValue = new String(b, "UTF-8");
0 件のコメント:
コメントを投稿