处理中文字符串的函数

处理中文字符串的函数

<%!public String codeToString(String str) {//处理中文字符串的函数
		String s = str;
		try {
			byte tempB[] = s.getBytes("ISO-8859-1");
			s = new String(tempB);
			return s;
		} catch (Exception e) {
			return s;
		}
	}%>

猜你喜欢

转载自blog.csdn.net/qq_40956679/article/details/83540837