<%! String trans(String chi) { String result = null; byte temp []; try { temp=chi.getBytes("gb2312"); result = new String(temp); } catch( e) { System.out.println (e.toString()); } return result; } String trans(Object chi) { return trans(chi.toString()); } %>