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

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

  1. Attach some text containing single quote and double quotes in an attachment note
  2. Add this note in a correspondence template
  3. 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:
    1. Run Response Data Transform
    2. Replace the ASCII texts using below code:
       
    @(Pega-RULES:String).replaceAll(.pyMemo, "'","'");
    @(Pega-RULES:String).replaceAll(.pyMemo, """,'"');



     

    Published December 29, 2018 - 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