关于日文参数传递的问题。用session传递参数,读出来的是乱码,有人做过日文界面jsp??
public String getStr(String str)
{
try
{
String temp_p=str;
byte[] temp_t=temp_p.getBytes("ISO8859-1");
String temp=new String(temp_t);
return temp;
}
catch(Exception e)
{
}
return "null";
}
我用上面的函数转化中文好象还可以,但是不知道日文是什么字符集。
我认为session传递是不存在这个乱码的问题的,关键是怎么读取这个参数,然后写到session中,如下:
chuli=request.getParameter("chuliqufen");
or
chuli=getStr(request.getParameter("chuliqufen"));
上面的一句传递日文参数是肯定不正确的,下面一句就不知道怎样才能正确呢?请高手指点。