Double-encoding of rich text fields in Adobe Experience Manager translation XML exports
This article explains how to resolve issues with double-encoded HTML entities in rich text fields when exporting translation projects as XML from Adobe Experience Manager, which can cause compatibility problems with some translation management systems.
Description description
Environment
Adobe Experience Manager
Issue/Symptoms
- When exporting pages for translation from Adobe Experience Manager, plain text fields and rich text fields are encoded differently in the resulting XML. For example, a plain text field containing Automation & Solutions is exported as ‘Automation & Solutions’, while a rich text field with the same content is exported as
<p>Automation & Solutions</p>. This results in double-encoding of HTML entities (such as& instead of&) in rich text fields. - Some translation management systems may not handle these double-encoded entities correctly, leading to issues with translated content. This behavior is specific to rich text fields; plain text fields are not affected.
Cause
Out-of-the-box integrations like Microsoft Translator can process the encoded XML correctly, indicating that the issue can be addressed in the translation connector or translation management system layer.
Resolution resolution
To fix the double-encoding issue in rich text fields, follow these steps:
- Review your translation connector or translation management system (TMS) configuration to ensure it can properly decode and re-encode HTML entities in rich text fields during import and export.
- If your TMS does not handle double-encoded entities, implement logic in your translation connector or TMS to decode entities (for example, convert
&back to&) before processing and re-encode as needed after translation. - Test your workflow with a supported out-of-the-box integration, such as Microsoft Translator, to compare the expected handling of encoded XML content.
- If you encounter additional encoding or rendering issues with other characters or HTML entities (such as
>,⊃, or-), contact Adobe Support for further assistance. - After making changes, verify that translated rich text content is correctly rendered in Adobe Experience Manager without unwanted double-encoding.
recommendation-more-help
experience-cloud-kcs-help-kbarticles