private void appendRtfString(StringBuilder result,String value){
  for (int i=0; i < value.length(); i++) {
    int codePoint=value.codePointAt(i);
    if (codePoint == 10) {
      result.append("\\par\n");
    }
 else     if (codePoint > 127) {
      result.append("\\u" + codePoint + "?");
    }
 else {
      result.append(value.substring(i,i + 1));
    }
  }
}

private void appendRtfString ( StringBuilder result , String value ) { for ( int i = 0 ; i < value . length ( ) ; i ++ ) { int codePoint = value . codePointAt ( i ) ; if ( codePoint == 10 ) { result . append ( "\\par\n" ) ; } else if ( codePoint > 127 ) { result . append ( "\\u" + codePoint + "?" ) ; } else { result . append ( value . substring ( i , i + 1 ) ) ; } } }
appends the string the a rtf value escaping for unicode . this is a slow function .
