question: 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 ) ) ; } } }
target:  Appends the string the a RTF value escaping for unicode. This is a slow function. 