Title: special characters

I am having to escape special characters such as apostrophes (replace with &apos) to get them to display correctly on PDFs. Is this really necessary?

Basically What I do is,

1. Read Database.
2. Generate XML for this data.
        2a. During this generation, replace characters such as apostrophes, quotes, ampersands with ' " & respectively.

3. Apply XSL-FO transormations to this XML
4. Write the generated PDF's bytes to a the ServletOutputStream.


Step 2a seems wasteful to me. Has anyone had to do this before? Is there a better way?

Thanks,

Prabhat.

Reply via email to