日期:2014-05-20 浏览次数:20737 次
[\u4e00-\u9fa5]
/**
* 判定输入汉字
* @param c
* @return
*/
public boolean isChinese(char c) {
Character.UnicodeBlock ub = Character.UnicodeBlock.of(c);
if (ub == Character.UnicodeBlock.CJK_UNIFIED_IDEOGRAPHS
------解决方案--------------------
ub == Character.UnicodeBlock.CJK_COMPATIBILITY_IDEOGRAPHS
------解决方案--------------------
ub == Character.UnicodeBlock.CJK_UNIFIED_IDEOGRAPHS_EXTENSION_A
------解决方案--------------------
ub == Character.UnicodeBlock.GENERAL_PUNCTUATION
------解决方案--------------------
ub == Character.UnicodeBlock.CJK_SYMBOLS_AND_PUNCTUATION
------解决方案--------------------