This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
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.
Lasse Koskela
author
Sheriff
Joined: Jan 23, 2002
Posts: 11962
5
posted
0
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?
anekh sunamo
Greenhorn
Joined: Nov 26, 2004
Posts: 3
posted
0
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 - �.