JavaWeb开发IE6操作,Action中乱码问题

在javaScript中转URL前,用encodeURI方法,封装一下以后,再传Action处理,
  var address_tempObj = document.getElementById("address_temp");
  var address_temp = encodeURI(address_tempObj.value);
 
Action中:
address_temp = new String(address_temp .getBytes("ISO-8859-1"),"utf-8");
 
 

你可能感兴趣的:(中文乱码,职场,javaweb,休闲)