String name;
name=trans(request.getParameter("name"));
String trans(String chi)...{
String result = null;
byte temp [];
try ...{
temp=chi.getBytes("iso-8859-1");
result = new String(temp); }
catch(Java.io.UnsupportedEncodingException e) ...{
System.out.println (e.toString());
}
return result;
}
String trans(Object chi)...{
return trans(chi.toString());
}