cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP Mapping XML Header tag

Former Member
0 Kudos

Hi Everybody,

I am facing an issue in the header tag of the XML.I am using ABAP mapping and i am getting the header XML tag as "?xml version="1.0" encoding="utf-8"?".Now my requirement is that i need utf-8 in Upper case "UTF-8".I am using the method set_encoding in the code.I am passing UTF8 to the variable "character_set".But in the output file it is shown in the small case.

Can anybody help me in this.

Thanks All,

Zabi

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

It does not make any difference

Former Member
0 Kudos

Hi Zabi,

Can you please tell what is the code you added in ABAP Mapping for XML Header tag to set encoding? I am trying to add this . But i am getting error in ABAP Mapping. So can you please tell the code to be added for set_encoding.

Regards,

Dinakar

stefan_grube
Active Contributor
0 Kudos

You need not define any encoding as for XML the UTF-8 is default.

Or do you want to set another encoding? In that case you have to change the data as well.

Regards

Stefan

Former Member
0 Kudos

Hi Stefan,

Thanks for your reply. How do i set encoding to UTF-16 if i have to in ABAP Mapping.What is the code to do that?

Regards,

Dinakar