cancel
Showing results for 
Search instead for 
Did you mean: 

How to determine codepage ISO-8859-1 for my output XML?

Former Member
0 Kudos

Dear experts,

I want to create an XML file with codepage "iso-8859-1" from PI 7.11.

I have already tried to put the filetype to TEXT and ISO-8859-1 in the File Encoding field of my receiving CC (using the FTP adapter), but I still get an xml in codepage UTF-8.

It should also be possible to realise this via an XSL mapping, but where do I have to do this? Or is there any other way to use codepage ISO-8859-1?

Thanks in advance,

William

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

check the SAP note: 960663

Former Member
0 Kudos

Hi William,

I am doing this with the XML anonymizer bean in my receiver CC.

Define an additional Bean in the Module Adapter:

AF_Modules/XMLAnonymizerBean.

And use this property:

anonymizer.encoding ISO-8859-1.

Reference:http://help.sap.com/saphelp_nw04/helpdata/en/45/d169186a29570ae10000000a114a6b/content.htm

Hope it helps,

Martin

Former Member
0 Kudos

Hi William,

Write a simple XSLT mapping to change the value of the attribute "encoding" to "ISO-8859-1" in the output XML of message mapping . Include this XSLT map as the second mapping step in your interface mapping.

First step in your interface mapping will be your already existing message mapping.

Here is the XSL code !

<?xml version='1.0'?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:output method='xml' encoding='ISO-8859-1' />

<xsl:template match="/">

<xsl:copy-of select="*" />

</xsl:template>

</xsl:stylesheet>

Hope you can solve now ...if not pls let us know !

cheers,

Ram.

Former Member
0 Kudos

Hi Ram,

thanks a lot for your reply.

I am using PI7, and when I look into the Operation mapping indeed my first line is the existing message mapping. Do I have to create a 2nd line with type XSL, and create a new mapping? But then to which node do I attach the XSL mapping you wrote, to the above one? Sorry but I have not worked with XSL mapping before...

Thanks and regards

William

Former Member
0 Kudos

Hi William,

Just do the following :

1. Create a " .xsl" file outside PI which contains the XSLT mapping code.

2. Bring into PI-ESR as Imported Archive object.

3. In Operation Mapping insert first .xsl file as mapping TYPE XSL.

4. Then in the second line enter your Message Mapping.

Then proceed as usual...

Cheers,

Ram.

Former Member
0 Kudos

Hi Ram,

I did it just as you described but unfortunately no luck...still the output is in UTF-8. Starting to get desperate

Do you have any more suggestions I can try?

Thanks again

William

Former Member
0 Kudos

Hi,

Use XMLAnonymizer bean(as suggested above).

Under Module tab:

Processing sequence:

AF_Modules/XMLAnonymizerBean LocalEnterpriseBean Bean1

ModuleConfiguration:

Bean1 anonymizer.acceptNamespaces http://infosys.com/poc ''

Bean1 anonymizer.encoding ISO-8859-1

Thanks

Amit

Former Member
0 Kudos

Hi,

please try this guide. It describes the codepage options:

http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/502991a2-45d9-2910-d99f-8aba5d79fb42

Regards,

Gábor

Former Member
0 Kudos

Hi,

The encoding what you have mentioned in file adapter should work if you are converting the XML into flat file. But if you are writting the output as XML , then you should eiether go for XSLT mapping encoding or use XMLAnonymizerBean in receiver file adapter.

former_member472138
Active Contributor
0 Kudos

Hi

You can do this change at Visual Administrator level. There are some parameters you need to edit and add IS0-8859, so that Integration engine will set for that encode.

So, you can ask the Basis guys to perform this.

This would certainly works out for you.

Regards

Pothana

Please note: I've already answered this in other thread posted by you it seems.