본문으로 바로가기

작성 CHARSET 한글 체크

category JAVA/MODULE 2020. 10. 18. 23:01

hangul_check(ch){  //true은 한글 false이면 한글이아님

  c = ch.charCodeAt(0);

  if( 0x1100<=c && c<=0x11FF ) return true;

  if( 0x3130<=c && c<=0x318F ) return true;

  if( 0xAC00<=c && c<=0xD7A3 ) return true;

  

  return false;

}