Free Support Forum - aspose.com

Characters like "-" lost in word

Hi,


I am writing strings in a word document using the following APIs:

DocumentBuilder.write(String); and
DocumentBuilder.insertHtml(String);

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).

Regards,
Prabhaker Kr

Hi Prabhaker,

Thanks for your inquiry. It would be great if you please share following detail for investigation purposes.


  • Please attach your input Word document.
  • Please attach your input Html used in insertHtml method.
  • Please

    create a simple Java application that demonstrates the code (Aspose.Words code) you used to generate
    your output document

  • Please attach the output Word file that shows the undesired behavior.
  • Please
    attach your target Word document showing the desired behavior. You can
    use Microsoft Word to create your target Word document. I will
    investigate as to how you are expecting your final document be generated
    like.

Unfortunately,
it is difficult to say what the problem is without the Document(s) and
simplified application. We need your Document(s) and simple project to
reproduce the problem. As soon as you get these pieces of information to
us we’ll start our investigation into your issue.