<%@ page contentType="text/html; charset=Shift_JIS"%>//在页首加入此行!!
并且在脚本处写上<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">//已经测试通过,设置的是日文的字符集!!