Non printable characters are injected to the dialog fields after translations using TMS adaptor in aem | Community
Skip to main content
April 28, 2020
Question

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

  • April 28, 2020
  • 0 replies
  • 586 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.