Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

EUR currency symbol displays as question mark in PDF

SA-17447

Summary



When an application generates a PDF through the activity pyViewAsPDF, the EUR currency symbol (€) displays as a question mark (?) in the PDF.


Error Messages



Not Applicable


Steps to Reproduce



Use the activity pyViewAsPDF to generate a PDF for which the source document contains the EUR currency symbol.


Root Cause



The activities pyViewAsPDF, HTMLtoPDF, and activities referenced by these two activities do not correctly process the HTML character entity “€” or its Unicode counterpart. This is most likely caused by an incorrect encoding of the character set that is used in these activities.

For the case described here, the activity pyViewAsPDF (@baseclass:pyViewAsPDF;Pega-IntegrationEngine:07-10-15) refers to the activity HTMLtoPDF (@baseclass:HTMLToPDF;Pega-IntegrationArchitect:07-10-17). Here, an HTML rule passes HTML-Paragraphs as HTMLStream parameter. Some of these HTML-Paragraphs contain the EUR currency symbol.

The third-party software used to generate the PDF needs to refer to a font library containing Unicode characters.

Resolution



When your application uses the activities pyViewAsPDF, HTMLtoPDF, or activities referenced by these two activities, make sure that a valid directory is passed in the pyPDFFontsDirectory parameter.

Watch this Pega Video: https://pdn.pega.com/pegatube/support-guide-troubleshooting-cyrillic-script-not-appearing-generated-pdf

Suggest Edit

Published December 18, 2017 - Updated October 8, 2020

Did you find this content helpful? Yes No

50% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us