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

Attachements with Chinese-character filenames appear incorrect

SA-20807

Summary



Pega was integrated with Filenet content manager to store the work object attachments. An email was created and sent to a case. The email had an attached file named in Chinese. Random characters and symbols appeared instead of Chinese characters when downloaded from the email. However, it appeared fine in Pega.

Error Messages



Not Applicable

Steps to Reproduce



1. Create a correspondence rule. 
2. Attach a file, which is named in Chinese. 
3. Run the use case, which sends email along with attachments.

Root Cause



SendEmailMessage RUF was customized into the rule set, and a part of the code was missing from the RUF.

Resolution



Add the following code to the SendEmailMessage RUF.

String attname = attach.getString("pyName"); 
//BUG-152335: added code to encode the attachment name 
attname = javax.mail.internet.MimeUtility.encodeText(attname,charset,null); 

Published March 16, 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