List of utility methods to do Unicode to UTF
String | unicodeToUTF(String in) unicode To UTF int n = in.length(); StringBuffer t = new StringBuffer(3 * n); int nt = 0; for (int i = 0; i < n; i++) { char c = in.charAt(i); if (c == '\u0000') { t.append('\u00c0'); t.append('\u0080'); ... |
String | unicodeToUtf8(String theString) unicode To Utf char aChar; int len = theString.length(); StringBuffer outBuffer = new StringBuffer(len); for (int x = 0; x < len;) { aChar = theString.charAt(x++); if (aChar == '\\') { aChar = theString.charAt(x++); if (aChar == 'u') { ... |