By: Vreixo Luis Gonzalez Caneda user 07 Jan 2022 at 9:39 a.m. CST

2 Responses
Vreixo Luis Gonzalez Caneda gravatar
Hi, Interception script messages added via bean with the following code should deal correctly with special characters like french accents. self.facesMessages = CdiUtil.bean(FacesMessages) error_message = String.format("#{msgs['%s']}", msg) self.facesMessages.add(severity, error_message) What we are seeing rendered is instead the scaped HTML for them. For example: "Non autorisé." transforms to "Non autorisé". This is also happening if we specify unicode symbol instead Non "\u00E9". We suppose that this is in relation of this escaping "StringEscapeUtils.escapeHtml4(evaluatedMessage);" in https://github.com/GluuFederation/oxCore/blob/master/oxJsfUtil/src/main/java/org/gluu/jsf2/message/FacesMessages.java. So we we're wondering which will be the solution. For us is quite important to be able to put accents as they're used a lot in french. Thank you very much for your help, Regards

By Vreixo Luis Gonzalez Caneda user 25 Jan 2022 at 10:42 a.m. CST

Vreixo Luis Gonzalez Caneda gravatar
Hi, Can you give us some ideas to continue debugging this issue? As our clients are French we need to show many special characters in our error messages so it's quite blocking to have a real implementation. Regards,

By Mobarak Hosen Shakil staff 25 Jan 2022 at 7:09 p.m. CST

Mobarak Hosen Shakil gravatar
Hi Luis, Can you please share a screenshot of what you are getting instead of expecting? I could not find the differences between "Non autorisé." and "Non autorisé"! Regards ~ Shakil