Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.

Non printable characters are injected to the dialog fields after translations using TMS adaptor in aem

Avatar

Level 1

we are using TMS Translation Tool to translate the pages. we are reading Title Field of dialog and using the value to construct a URL. This URL is used as href link on one of the CTA. But I found that the CTA is not clickable for few translated pages. I have printed the title field in my java code and after encoding in notepad++, I found some non-ASCII, non-printable characters like "xA0" for the Title Field of dialog which inserted in place of space. Is it expected behaviour to have these non-printable character because of translation? or Is there anything else I am missing here.

 

However, the below code changes fixes the issue:

str..replaceAll("[^\\p{ASCII}]"," ");

 

These non-printable characters are mostly found for fr language.

0 Replies