Javabean, jsp Chinese problem

xiaoxiao2021-03-06  17

public static String toCN (String strvalue) {try {if (strvalue == null) {return null;} else {strvalue = new String (strvalue.getBytes ( "ISO8859_1"), "GBK"); return strvalue;}} catch (Exception E) {return null;}}

转载请注明原文地址:https://www.9cbs.com/read-42357.html

New Post(0)