I am using FOP version 0.20.5 for generating a PDF. Whenever a special character is encountered, they are getting displayed as hash ("#") in the PDF. Can anyone give an idea how to go about this.
We are using sans-serif font. We are getting the special char from word document. for example: "This is � the special char" The hypen we get from word document is not the mormal ANSI hypen. This seems to be a double byte char. And the Hypen is displayed as # in PDF. We are using FOP.jar for pdf generation.
Ok. So apparently the default sans-serif font (sans-serif is just a "family" of fonts, if you weren't aware of that) used by FOP doesn't handle your specific special character too well. Could you try another font?
We tried with fonts like Arial, Courier but the special characters remained same. Now we passed UTF-8 encoding to the InputStreamReader. Looks like it works but generates an extra character - �.
A sonic boom would certainly ruin a giant souffle. But this tiny ad would protect it:
a bit of art, as a gift, the permaculture playing cards