Bug 18787 - Special Characters not rendered correctly
Summary: Special Characters not rendered correctly
Status: CLOSED WORKSFORME
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: pdf (show other bugs)
Version: 0.20.5
Hardware: PC other
: P3 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-07 23:32 UTC by Zip Casadaban
Modified: 2012-04-01 13:52 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zip Casadaban 2003-04-07 23:32:55 UTC
When I generate an FO file and pass it to FOP in java, my PDF output doesn't 
have special characters rendered properly (like bullets, & copyright [©] 
symbols for example). However when I run FOP from the command line with the 
same identical FO file as input, the special symbols are rendered correctly in 
the PDF output.

It seems as though the command line FOP is encoding the text, thus allowing 
special chars to be handled properly.  Can you tell me how to set the proper 
FOP options in java so that this encoding takes place the the special chars can 
be handled correctly?

Thanks,

Zip
Comment 1 Jeremias Maerki 2003-04-08 06:26:23 UTC
You should ask this kind of question on the fop-user mailing list. Bugzilla is 
for reporting bugs, posting requests for enhancement and patches.

It's difficult to tell what you're doing wrong without seeing your code. Have 
a look at the embedding examples in the examples/embedding directory. The 
class ExampleFO2PDF.java should work with special characters. Compare that 
code to yours. In case you have special fonts you register with the -c 
argument on the command line make sure you initialize the Options class. See 
the Embedding page on the FOP site on how to do this. If you have any more 
questions please post them on the fop-user mailing list. This way, more people 
will also profit from answers.
Comment 2 Glenn Adams 2012-04-01 13:52:19 UTC
batch transition to closed remaining pre-FOP1.0 resolved bugs