Support Article
Special characters display as ASCII text in the generated email
SA-61520
Summary
Special characters, such as single and double quotes, display as ASCII text in the generated email.
Error Messages
Not Applicable.
Steps to Reproduce
- Attach some text containing single quote and double quotes in an attachment note
- Add this note in a correspondence template
- Run the flow
Root Cause
A defect or configuration issue in the operating environment.
While retrieving the attachment notes text from the report definition, the text string contained the single quote and double quotes in the ASCII format. Thus the notes inside the email content displayed as ASCII texts.
Resolution
Perform the following local-change while retrieving the data from report definition:
- Run Response Data Transform
- Replace the ASCII texts using below code:
@(Pega-RULES:String).replaceAll(.pyMemo, """,'"');
Published December 29, 2018 - 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.