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
- Create a map value who's output is "฿"
- 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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.