String areaN= "";
for (int i = 0; i < areaN.length(); i++ ){ isChinese = (int)areaN.charAt(i); //不是中文 if(!(19968 <= isChinese && isChinese <40869)) { areaMap.put("enAreaName",areaN); }else{ areaMap.put("areaName",areaN); } }
String areaN= "";
for (int i = 0; i < areaN.length(); i++ ){ isChinese = (int)areaN.charAt(i); //不是中文 if(!(19968 <= isChinese && isChinese <40869)) { areaMap.put("enAreaName",areaN); }else{ areaMap.put("areaName",areaN); } }
转载于:https://my.oschina.net/u/3727427/blog/3018531