お気軽全角判定 2007/05/28

文字が全角かどうか判定します。お気軽です。


public static boolean isZen(String s){

for(int i=0;i<s.length();i++){
String s1 = s.substring(i, i+1);
if(URLEncoder.encode(s1).length() < 4) return false;
}

return true;
}


参考にしたのは、
http://f32.aaa.livedoor.jp/~azusa/index.php?t=js&p=formcheck

: