I am trying to create a pdf with the pdfbox library, and in the content I need the "ñ" character to go, however the resulting pdf only shows me strange characters
I tried the other encoding UTF8, windows 1252, etc. and with characters like "\ u00f1", but I still have the same problem
content.beginText();
content.setFont(PDType1Font.HELVETICA, 14);
content.moveTextPositionByAmount(230, y);
content.drawString("S/. 5,000 Mensuales por 20 a\u00f1os");
content.endText();