We have a service which send response values with different HTML tags. We are able to display the values properly on the screen. However when we get some special symbols like dagger (†)/double dagger(𔅅) we are not able to display the symbol on screen (ASCII codes are displayed on screen).
Currently using a paragraph rule to display the values on screen.
Code in paragraph rule <% out.println(tools.getProperty(".propertyName").getStringValue()); %>
Do you have any suggestions on displaying these as symbols on screen.
***Updated by moderator: Brendan. Removed user added #helpme and Ask the Expert tags. Apologies for confusion, shouldn't have been an end-user option.
What encoding are you using? Dagger is a unicode character. If you're getting ASCII, is that because that is the encoding you have explicitly called somewhere in your call stack? If you see this on the screen, have you used an HTTP debugger, like fiddler, to see what's being passed down from the server? That can rule out the browser (or point to it, if the proper characters are being passed from the server). Assuming things are wrong upstream, have you taken a look at the data in the database? Is it being converted to ASCII there? If the data is good there, then a Pega platform trace should hopefully help you zero in on where between the DB and the client things get incorrectly encoded.
Posted: 6 years ago
Posted: 8 Jul 2016 9:57 EDT
Samanth Reddy chintakuntla (SamanthReddyc6298)
I get the below response from a service. I use the same data to display on the screen. I am able to convert some of the ASCII chars to proper symbols except dagger and double dagger. Highlighted in bold are formatted and displayed properly. Italics are not displayed on screen.
$50statement credit after you use your Card on a Universal or other purchase within the first 3 months of Card Membership<span class="offer_footnote_class"><sup>&#8224</sup></span>