Here you can find the source of checkStringIsChinese(String str)
public static boolean checkStringIsChinese(String str)
//package com.java2s; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Main { public static boolean checkStringIsChinese(String str) { if (null == str) { return false; }/* w w w . j av a 2 s. c o m*/ Pattern pattern = Pattern.compile("[\\u4E00-\\u9FA5]+"); Matcher matcher = pattern.matcher(str); return matcher.matches(); } }