1. MyD

    Didn’t worked for me. Also your snippet doesn’t show all the important information. What is x and what is parameters? What is the syntax later you write the RTF string to file on disk? Hope you can help further. Thanks!

  2. MyD

    this function shows it more detailed:

    private String convertToRTFUnicode(String s) {
    Map replace = new HashMap();

    for (int i = 0; i 127) {
    replace.put(bit, “\\\\u” + value + “\\\\’ “);

    // Now replace all the characters we found
    Iterator<Entry> it = replace.entrySet().iterator();
    while (it.hasNext()) {
    Entry entry = it.next();

    String key = entry.getKey();
    String value = entry.getValue();

    // Make the substitution
    s = s.replaceAll(key, value);

    return s;

Leave a Reply

Your email address will not be published. Required fields are marked *