cancel
Showing results for 
Search instead for 
Did you mean: 

UTF-16 Encoding issue with Receiver HTTP adapter

Former Member
0 Kudos

Hey Guys

I m trying to set the encoding of XML payload in my receiver HTTP adapter as UTF-16 but its giving me the following error in sxmb_moni

External code page UTF-16 missing in system

I m able to set the encoding as UTF-16LE or UTF-16BE though.

The receiver system needs only UTF-16.

Any idea where should i look at?

Thanx

Aamir

Accepted Solutions (0)

Answers (1)

Answers (1)

stefan_grube
Active Contributor
0 Kudos

Contact the system administrator and ask him to install the missing code page. It should be part of the OS, where the XI system is installed.

Regards

Stefan

Former Member
0 Kudos

Thanx Stefan

Do you happen to have any guide or some Note note which we can refer,actually our admin is fairly new in XI is not sure where to look at

Thanx

Aamir

stefan_grube
Active Contributor
0 Kudos

This is not a PI task. You install the codepage on the operating system (Windows, Unix,...)

Hope that helps

Stefan

Former Member
0 Kudos

Thanx Stefan

But we already have UTF-16 codepage on system.

Also a small question,when we are changing the encoding for receiver HTTP communication channel,we only need to specify the encoding under "XML Code" in receiver communication channel,right?

Is there any other place where we need to change the encoding.

Thanx

Aamir

Former Member
0 Kudos

Stefan

Thanx for your help,actually i m getting data in UTF-8 format and i need to convert this to UTF-16 format,now if i specify UTF-16 in the XI payload manipulation in receiver HTTP adapter,the message passes through successfully in sxmb_moni but the receiver system is unable to open the file,i checked with TCP gateway and its working fine.I have not done any XSLT or Java mapping to convert UTF-8 to UTF-16.The outbound payload in TCP Gateway does have UTF-16 in the XML declaration though.

I was looking at your reply in the following thread

and you said that the we need to have Java/XSLT mapping as well as set XI payload manipulation in receiver HTTP adapter.

Do we need to use XSLT/Java mapping as well as set XI payload manipulation as UTF-16 to properly convert the message?

Thanx

Aamir

Edited by: Aamir Suhail on Sep 24, 2008 8:50 PM

stefan_grube
Active Contributor
0 Kudos

Hi Aamir,

My previous reply was only for the error message.

If you want to change your XML payload to UTF-16, I recommend using the SOAP adapter instead of the HTTP adapter, if his is possible in your scenario.

You set the paramater "Do not use SOAP envelope" and add the XMLAnonymizerBean to the module chain. Here you set the encoding to UTF-16.

See this blog:

Hope that helps

Stefan

Former Member
0 Kudos

Hey Stefan

I would have loved to use SOAP here coz i can add modules in it,but due to some business constraints i need to use HTTP,i m doing XSLT mapping to convert UTF-8 to UTF-16 .when i test it under test tab in Interface mapping,the resulting payload is all garbled but when i run the scenario i can see correct payload in sxmb_moni but in the pipeline steps its failing at HTTP_PLAIN_ADAPTER level with the error "Code page conversion not possible".I have given UTF-16 under XML manipulation in HTTP receiver communication channel as well.

As per our system admin ,we have UTF-16 codepage installed on the system.

Thanx

Aamir

Former Member
0 Kudos

The receiver system was able to do some tweaking on their side so that they can accept UTF-8,so as of now the issue is resolved for us.

We have raised a OSS message with SAP regarding the UTF-16 issue though.

Will update the thread with their feedback

Thanx

Aamir