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 in file name are encoded



When uploading any file using out-of-the-box FilePath control, special characters in file name are encoded while writing the file to Service Export directory.

Abc `[email protected]#$%^&()_-+={[}];'., is getting encoded to Abc `[email protected]#$24%^&$28$29_-+=$7b$5b$7d$5d$3b$27.$2c


! = $21

$ = $24

( = $28

) = $29

{ = $7b

[ = $5b

} = $7d

] = $5d

; = $3b

' = $27

, = $2c

Error Messages

Can't continue with file upload. File Abc `[email protected]#$%^&()_-+={[}];'.,.pdf doesn't exist or empty.

Steps to Reproduce

1. Upload a file containing special characters in its name.
2. Try to read that file from ServiceExport directory to transfer it to another location.

Root Cause

PRPC is encoding special characters in file name while writing it to Service Export directory when uploading any file using OOTB FilePath control.


Embracing either of the below local-changes resolves the issue.

  • Use pxRequestor.pyFileUpload property that holds the encoded file name to search for a file.
  • Encode your search string <file name> while searching for it in the directory using following code.

                   String fName = StringUtils.encodeCrossOSString(fileName);

Suggest Edit

Published October 1, 2015 - Updated October 8, 2020

Did you find this content helpful? Yes No

50% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

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