url中文乱码

Posted on 2009-09-06 03:55  Andylee  阅读(212)  评论(0编辑  收藏  举报
在URL中get方法和url一起编码,解决中文乱码:
request.setCharacterEncoding("GBK");

Copyright © 2024 Andylee
Powered by .NET 9.0 on Kubernetes