Using & in jcr:title and jcr:description fields - cause translation issue | Community
Skip to main content
Level 2
June 28, 2022
Solved

Using & in jcr:title and jcr:description fields - cause translation issue

  • June 28, 2022
  • 2 replies
  • 1037 views

Hi

Can someone help with how & character should be used in AEM sites textual nodes.

When text is extracted from AEM through the translation integration framework, & characters are converted to entities (&) in the exported xml. The entities are preserved during translation and imported back into AEM, where the displayed page renders them back to the & character. This all works as expected except for jcr:title and jcr:description, where the entity is retained after translation.

Example:

Source text:
Apples & Pears

 

Extracted xml content: 

<translationObjectProperties>

    <property isMultiValue="false" nodePath="/content/we-retail/language-masters/de/CC_nameV1/jcr:content" propertyName="jcr:title">Apples &amp; Pears</property>

  </translationObjectProperties>

 

retruned translation in the AEM title field is: Apples &amp; Pears
AEM TIF is not rendering it back to the & character


Is this expected behaviour and is there somethign specific in title and description field where & should not be used?

thanks

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

Hi @nwatson69  Which translator you are using ?. Standard translators do not encode these characters after translation. If you check with Microsoft translator(available with AEM), It keep character in jcr:title and jcr:description same after translation. 

Can you check if your translator has some configuration to manage this.

2 replies

SantoshSai
Community Advisor
Community Advisor
June 28, 2022

Hi @nwatson69 ,

That is expected behaviour for some special characters, Faced similar issue here: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/rte-link/m-p/451393

I don't know what was the exact issue causing it, unfortunately couldn't able to find it yet, hence raised it to Adobe support team.

Regards,

Santosh

Santosh Sai
sunil_kumar_
sunil_kumar_Accepted solution
Level 5
June 28, 2022

Hi @nwatson69  Which translator you are using ?. Standard translators do not encode these characters after translation. If you check with Microsoft translator(available with AEM), It keep character in jcr:title and jcr:description same after translation. 

Can you check if your translator has some configuration to manage this.