Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

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