Question

&#039 ; not getting converted to '

Hi All,

We are facing an issue when trying to decode '

Set param.abc= "People's Test"

Set param.test=@(Pega-Rules:Default).Decode(param.abc)

Expected result: param.test="People's Test"

Though in tracer we can see the expected result for param.test, when trying to compare param.test with "People's Test", expression is returning false. Looks like decoding is not happening.

We also tried decryptPW, but no luck

Any suggestions?

Thanks in Advance!!

Correct Answer
September 4, 2019 - 2:01am

The existing functions in Pega can be used to convert and display the HTML codes but on comparison it would fail. We used replace all for this requirement.

Comments

Keep up to date on this post and subscribe to comments

Pega
August 21, 2019 - 6:20am

Hello Anuj,

Looks like the following post would help your cause, please have a look:

https://community1.pega.com/community/pega-product-support/question/how-include-single-quotes-localized-value-field-value-rule

Let us know if it helps.

 

Thank you,
Pawan

September 4, 2019 - 2:01am

The existing functions in Pega can be used to convert and display the HTML codes but on comparison it would fail. We used replace all for this requirement.