UTF-8 characters returned from Search and Promote show garbled characters

kishore_polsani

08-07-2020

When using Search and Promote integration with AEM, certain UTF-8 characters are returned in results (XML) as garbled characters. Text is visible correctly in Search and Promote data view report with proper UTF-8 encoding.

I have added the charset as UTF-8 in both custom presentation and transport templates. Any idea why the text in XML response is not having proper encoding.

 

TestPresentation.tmpl

<guided-content-type-header content="text/xml; charset=UTF-8" />
<guided-xml-decl charset="UTF-8">

 

TestTransport.tpl

<guided-content-type-header content="text/xml">
<guided-xml-decl charset="1">

 

Accepted Solutions (1)

Accepted Solutions (1)

Answers (0)