VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/util/CharacterParser.java
@@ -69,7 +69,7 @@ } /** * 汉字转成ASCII码 * * @param chs * @return */ private int getChsAscii(String chs) { public int getChsAscii(String chs) { int asc = 0; try { byte[] bytes = chs.getBytes("gb2312"); @@ -91,7 +91,7 @@ } /** * 单字解析 * * @param str * @return */ public String convert(String str) { public String convert(String str) { String result = null; int ascii = getChsAscii(str); if (ascii > 0 && ascii < 160) {