`
eagle0824
  • 浏览: 228305 次
  • 性别: Icon_minigender_1
  • 来自: 镇江
社区版块
存档分类
最新评论

页面中文传递问题

 
阅读更多
页面设置的编码方式为UTF-8,
提交中文时,在各个页面之间的传递时按照ISO8859-1进行的,
在接受时要对其转码才能正常显示;
for example


String str = new String(request.getParameter("str").getBytes("ISO8859-1"),"utf-8");
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics