http://localhost:8081/Test/trafficquery.action?username=user&city=苏州
Action中:
String s = new String(city.getBytes("ISO8859-1"), "GBK");
本文介绍了一个具体的编码转换案例,展示了如何将URL参数中的城市名称从ISO8859-1编码转换为GBK编码的过程。
http://localhost:8081/Test/trafficquery.action?username=user&city=苏州
Action中:
String s = new String(city.getBytes("ISO8859-1"), "GBK");

被折叠的 条评论
为什么被折叠?