Here you can find the source of unicodeCount(String sStr)
public static int unicodeCount(String sStr)
//package com.java2s; //License from project: Apache License public class Main { public static int unicodeCount(String sStr) { if (sStr == null || sStr.equals("")) { return 0; }/* w w w. j av a 2 s. c om*/ int count = 0; for (int i = 0; i < sStr.length(); i++) { if ((int) sStr.charAt(i) > 255) { count++; } } return count; } }