I am writing strings in a word document using the following APIs:
The string has some character like “-”, “+” etc. DocumentBuilder.write(String) works fine but while writing the string using DocumentBuilder.insertHtml(String) the characters are lost. Specially the “-” character.
How can I not loose the characters from the string ?
P.S. I have to use both the APIs (write and insertHtml).