jsp往action中传中文参数,参数显示为乱码

private String id;//属性驱动,流程定义的id
public String showImage(){
try {
id = new String(id.getBytes("iso-8859-1"),"utf-8");
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
inputStream = processDefinitionService.getImageInputStream(id);
ActionContext.getContext().getValueStack().push(inputStream);
return "showImage";
}

js是utf-8吗,

web服务器编码是什么呢,如果是 tomcat 设置下编码,https://blog.csdn.net/q43778156/article/details/80380559
同时项目中应该使用编码过滤器统一编码。