I have encountered the same problem as described here, i.e to output € sign in my generated pdf document. The euro sign should be appended after the data retrieved from database, in this case the solution provided is not very useful, I tried with this lines, so that I can use the variable euroToPDF
anywhere I want:
Encoding e = EncodingManager.INSTANCE.getEncoding(COSName.WIN_ANSI_ENCODING);
String euroToPDF = String.valueOf(Character.toChars(e.getCode(e.getCharacter(128))));
but the application throws IOException, saying No character code for character name '€'
, anyone knows how to solve this?