/** * 判断字符串儿是否为中文 * @author lvtian 2012-2-21 * @param cString * @return */ public static boolean isChinese(String cString) { boolean boolValue = true; for (int i = 0; i < cString.length(); i++) { char[] cr = cString.toCharArray(); if((int)cr[i] < 128) { boolValue = false; } } return boolValue; }
?