public static String unescapeValue(String str){
  StringBuilder retbuf=new StringBuilder();
  for (int i=0; i < str.length(); i++) {
    char currentChar=str.charAt(i);
    if (currentChar == '\\') {
      char nextChar=str.charAt(i + 1);
      if (isEscapeCharacter(nextChar)) {
        currentChar=nextChar;
        i++;
      }
    }
    retbuf.append(currentChar);
  }
  return retbuf.toString();
}

public static String unescapeValue ( String str ) { StringBuilder retbuf = new StringBuilder ( ) ; for ( int i = 0 ; i < str . length ( ) ; i ++ ) { char currentChar = str . charAt ( i ) ; if ( currentChar == '\\' ) { char nextChar = str . charAt ( i + 1 ) ; if ( isEscapeCharacter ( nextChar ) ) { currentChar = nextChar ; i ++ ; } } retbuf . append ( currentChar ) ; } return retbuf . toString ( ) ; }
unescape characters that should be unescaped .
