java 后端接收get方式传值乱码

通过String类型的字符串函数实现

new String(str.getBytes("iso-8859-1"),"GBK");  // 是针对form表单Method="GET"提交时起作用。获取url的传值

猜你喜欢

转载自www.cnblogs.com/li-yi-learn/p/9069630.html
今日推荐