Euro word symbol

3

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

    
asked by sirdaiz 20.11.2017 в 16:42
source

1 answer

3

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);
    
answered by 20.11.2017 / 16:56
source