I have the following code:
XWPFParagraph totalFinal = documento.createParagraph();
XWPFRun tileFinal = totalFinal.createRun();
tileFinal.setText("TOTAL: " + totalIVA + " (€) ");
When I generate the word, I get a weird symbol
I have the following code:
XWPFParagraph totalFinal = documento.createParagraph();
XWPFRun tileFinal = totalFinal.createRun();
tileFinal.setText("TOTAL: " + totalIVA + " (€) ");
When I generate the word, I get a weird symbol
You can try using the following:
String euro = " \u20AC"; //Símbolo del euro en unicode
XWPFParagraph totalFinal = documento.createParagraph();
XWPFRun tileFinal = totalFinal.createRun();
tileFinal.setText("TOTAL: " + totalIVA + euro);