File Name with few special characters are getting replaced with their hex value when sent as email attachment. (E.g.- Test(1).pdf showing up as Test$281$29.pdf). Under Pega case attachments, name is showing up correctly. Encoding is also set to UTF-8.
Added special character decoding for outgoing email attachments
RESOLVED IN PEGA VERSION 7.1.9
Previously, code was added to the system to fix the cross-OS issue of special characters in file attachment names like [,],(,),{,},,. As part of the fix, the file names are encoded before being saved to the database. However, when those attachment are retrieved and sent out again as email attachments, the encoded characters were visible instead of the decoded values. To complete the decoding process, the file name will be handled with StringUtils.decodeCrossOSString(strfilename).
Decodes a string into into its original chars based on the encoded, UTF-8 legal, cross-OS string.
If you have added special character decoding for outgoing email attachments you will need to decode the string that was used for the file name before saving the attachment: