cancel
Showing results for 
Search instead for 
Did you mean: 

IDOC_AAE sender adapter XML : missing encoding="UTF-8"?>

Former Member
0 Kudos

Hi All,

We have a IDOC to JMS scenario using IDOC_AAE as sender channel.

Symptom

The IDOC whihc we have received from ECC should add XML version and encoding information to the created IDOC XML file.

Other Terms

IT SHOULD BE AS

<?xml version="1.0" encoding="UTF-8"?>

But we are getting as  <?xml version="1.0" > 

Can you please share your views on this ?

Regards.,

Siva

Accepted Solutions (1)

Accepted Solutions (1)

engswee
Active Contributor
0 Kudos

Hi Siva

Does it cause any errors in your system if it is missing?

Refer to the following site which states that if it is missing, then encoding is defaulted to UTF-8.

XML Encoding


UTF-8 is the default for documents without encoding information.

Rgds

Eng Swee

Former Member
0 Kudos

Thank for reply Eng Swee.

There is no error in sender ..But while we send the same idoc to external system we need that  encoding tag ..

is there any standard way of getting this encoding tag in source xml which is generated by IDOC_AAE ?

Regards.,

Siva

engswee
Active Contributor
0 Kudos

Hi Siva

Can you check on the ECC side if the RFC connection is using Unicode?

I'm not sure why the encoding is not appearing in the IDoc XML, but if you are unable to fix it, one workaround is to do a graphical message mapping with the same IDoc as source and target with 1-1 mapping for all the fields. The message mapping generates XML with the encoding attribute as UTF-8.

Rgds

Eng Swee

Former Member
0 Kudos

Hi Eng Swee,

Can you check on the ECC side if the RFC connection is using Unicode?

Yes it is Unicode

Since it is tunneling scenario , i like to handle it in source

Regards.,

Siva

engswee
Active Contributor
0 Kudos

Hi Siva

Yes, I understand that ideally this is handled at the source. You can wait and see if other members have any suggestion on how to do that.

I suggested the workaround in the case you have no other options to handle it at source.

Rgds

Eng Swee

Former Member
0 Kudos

Thanks all for your replies..

Answers (1)

Answers (1)

aashish_sinha
Active Contributor
0 Kudos

Shiva,

Add XML AnonymizerBean in target channel module to replace/Add UTF encoding.

AF_Modules/XMLAnonymizerBean


Regards

Aashish Sinha