Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

xml text format (special characters )

Avatar

Level 3

Hello

When i generat a XML file all the text with specials characters are transformed to html version how can i let web as they are for exemple :

"è@à<ééé>//&&  (in thepdf  textfield) =>"è@à&lt;ééé&gt;//&amp;&amp; (in the xml file)

How can i do for having the same texte ?

Tkanks

4 Replies

Avatar

Level 10

Place the below line on the first line of the XML file..If you already have the encoding line in the XML, replace that with the below. It should always be in the first line.

<?xml version='1.0' encoding='ISO-8859-1'?>

Thanks

Srini

Avatar

Level 3

can we set this line directly in LiveCycle before generating

the XML file ?


Avatar

Level 10

Usually when you generate the XML out of PDF, it will have <?xml version="1.0" encoding="UTF-8"?> as the starting line.

You need to use string find and replace methods in Java Script to change the encoding in the XML before sending the XML out of PDF..

Thanks

Srini

Avatar

Level 3

ok do you have any samples ?

Thanks