List of utility methods to do ASCII to Unicode
String | ascii(String name) ascii name = name.replace("\u017D", "a"); name = name.replace("\u017E", "a"); name = name.replace("\u201E", "a"); name = name.replace("\u0192", "a"); name = name.replace("\u008F", "a"); name = name.replace("\u2020", "a"); name = name.replace("\u00A0", "a"); name = name.replace("\u2026", "a"); ... |
String | ASCII2Unicode(String ascii) ASCII Unicode StringBuffer unicode = new StringBuffer(ascii); int code; for (int i = 0; i < ascii.length(); i++) { code = (int) ascii.charAt(i); if ((0xA1 <= code) && (code <= 0xFB)) { unicode.setCharAt(i, (char) (code + 0xD60)); return unicode.toString(); |
String | asciiToUnicode(String theString) ascii To Unicode 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') { ... |