Question
Special Characters displayed as ASCII values on screen
Hi
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.
Thanks
Sam
***Updated by moderator: Brendan. Removed user added #helpme and Ask the Expert tags. Apologies for confusion, shouldn't have been an end-user option.
Hello Sam,
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.
Thanks,
Mike