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

Map value is unable to read special characters like "¿"

SA-3209

Summary



You have a Map value which is meant to return a currency symbol. The system is unable to process a few currency symbols like "฿" and "元", instead the symbols are getting displayed as "?". This is happening when generating PDF and in PDF, the "฿" sysmbol is coming like inverted question mark.


Error Messages



There are no error messages, but instead of "฿", "?" is displayed.


Steps to Reproduce

  1. Create a map value who's output is "฿" 
  2. Display that value in a PDF

Root Cause



By Default in Linux, the system can't recognize other fonts. You need to set two parameter values so that system can recognise those fonts.


Resolution



The root cause of this problem is defect/misconfiguration in the PRPC operating environment. The activity creating the PDF needs the following paramiters set before the call to the HTMLToPDF activity.

Param.pyPDFFontsDirectory = "/usr/local/share/Fonts/" (Font directory path)
Param.pyPDFEmbedFont = "false"

Doing so will allow the system to recognize other fonts and as a result the PDF will use the correct fonts.

Published January 31, 2016 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

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