cancel
Showing results for 
Search instead for 
Did you mean: 

encoding tag in file/receiver

Former Member
0 Kudos

Hi all,

I need to send an XML encoded with ISO-8859-1. I have found the field <i>file encoding</i> in the receiver comm.ch. and wrote <i>ISO-8859-1</i> (exactly this).

The XML output seems to be ok, but... the encoding tag in the header remains <?xml version="1.0" encoding="UTF-8"?>.

I need to change it from UTF-8 to ISO-8859-1.

What else am I missing?

thnks,

David R.

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi David,

have a look at question 16 from SAP note: 821267

I don't think it's possible with XML files

to change it with the encoding parameter

from the note:

"Even if you configure a File Encoding in the File Adapter channel, the File Adapter will not re-write the XML header to reflect the changed encoding"

Regards,

michal

Former Member
0 Kudos

Any possible workaround for it? Something like a module in java to modify or whatever?

cheers,

David R.

udo_martens
Active Contributor
0 Kudos

Hi David,

if only the value of encoding attribute is wrong, you can replace "UTF-8" with "ISO-8859-1" by OS command.

Regards,

Udo

Former Member
0 Kudos

Thanks Udo!

I'll go this way.

cheers,

David R.

Former Member
0 Kudos

Hi David,

I am experiencing the same problem.

Could you perhaps tell me whether you were able to get this right using an OS Command?

If you did, could you perhaps point me in a direction to solving this?

Thanks very much,

Miguel

Answers (0)