This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
In our application we are generating PDF using FOP. Now this functionality is working fine on the staging server but same is giving problem on the production server.
On the staging/ UAT server PDF is generated fine, but same PDF is generated with question marks (?) in the production.
I am not able to add the pdf files over here. One is generated on the staging server and other is generated on the staging one is containing Question marks.
I will show the relevant parts where there are differences: ABC, Inc. (Buyer) on UAT but ABC? (Buyer) It seems to me that the spaces are being converted to ? marks...
Any suggestions on this are welcome [ November 05, 2006: Message edited by: Bear Bibeault ]
SCJP 5.0
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35247
7
posted
0
Usually, question marks are a sign that for some characters in the source text there are no characters in the font that is used to generate the PDF. Now, for a space symbol that shouldn't happen. Have you ascertained that the sequence of characters contains only exactly the characters that you think it contains, i.e. that there are no control characters or characters higher than ASCII 127? I would also check whether the fonts being used on both machines are identical, and that they have the same selection of fonts available. [ November 02, 2006: Message edited by: Ulf Dittmer ]
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12269
1
posted
0
Sure sounds like a font problem to me too. How is the original text being generated? Is there a Microsoft Word document with those annoying "smart" punctuation characters involved somewhere.