Java Utililty Methods Unicode to UTF

List of utility methods to do Unicode to UTF

Description

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

Method

StringunicodeToUTF(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');
...
StringunicodeToUtf8(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') {
...