Java Utililty Methods ASCII to Unicode

List of utility methods to do ASCII to Unicode

Description

The list of methods to do ASCII to Unicode are organized into topic(s).

Method

Stringascii(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");
...
StringASCII2Unicode(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();
StringasciiToUnicode(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') {
...