对我有效的解决方案是:
在servlet上,我应该这样做:
request.setCharacterEncoding("UTF-8");然后在html页面上,我必须添加以下内容:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

对我有效的解决方案是:
在servlet上,我应该这样做:
request.setCharacterEncoding("UTF-8");然后在html页面上,我必须添加以下内容:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">