Java Chinese Check isChineseChar(char c)

Here you can find the source of isChineseChar(char c)

Description

is Chinese Char

License

Apache License

Declaration

public static boolean isChineseChar(char c) throws UnsupportedEncodingException 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.io.UnsupportedEncodingException;

public class Main {
    public static boolean isChineseChar(char c) throws UnsupportedEncodingException {
        return String.valueOf(c).getBytes("GBK").length > 1;
    }/*  ww w.j  a v  a 2  s .c om*/
}

Related

  1. checkCharIsChiness(char c)
  2. isChina(String str)
  3. isChinaLanguage(char[] chars)
  4. isChinaLanguage(String str)
  5. isChinaOrEnName(String str)