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

Text encrypted control not supporting special characters



The user configured a property with type as "Text Encrypted". Pega is not converting Semi-colon ";" or Brackets "()" to "&#" followed by some numerical values. The user sees this issue in Dev, SIT, UAT and Production as well. Please provide a solution for this at the earliest.

Error Messages

Not Applicable

Steps to Reproduce

  1. Create a property with type as "Text Encrypted".
  2. Create a Access when rule.
  3. Configure the property in a section and give the control as "ShowTextEncryptedPropertyValue".
  4. Enter any text and include ; or () and save screen.
  5. Observe the value entered in the field. The semi-colon and brackets will get converted in "&#" followed by numerical values.

Root Cause

A defect in Pegasystems code or rules, converting the special characters to ascii and same has been displayed on UI.


Work around steps:
  1. Search with the rule “decryptPropertyValue” in designer studio.
  2. Go to Java tab and replace the piece of java code as given below.

if (tools.getAuthorizationHandle().haveAuthorization(tools, className, null, null, raw, page)) {
returnVal = StringUtils.crossScriptingFilter(tools.getPRCrypto().decryptPropertyValue(property.getStringValue()));


if (tools.getAuthorizationHandle().haveAuthorization(tools, className, null, null, raw, page)) {
boolean escapeQuote = tools.getParamAsBoolean(ImmutablePropertyInfo.TYPE_TRUEFALSE,"EscapeQuote");
returnVal = tools.getPRCrypto().decryptPropertyValue(property.getStringValue());

Published May 17, 2017 - 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