Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Http_post got messed codes

Former Member
0 Likes
660

Hi guys,

I use http_post to get data(xml format string)from a servlet,but in response_body_itab,I got messed codes(chinese character messed,other characters were ok),Does anyone can help? thanks very much.

Pole

4 REPLIES 4
Read only

Peter_Inotai
Active Contributor
0 Likes
604

Check the codepages. Might be different in the enternal application and in SAP.

Can you make the servlet somehow Unicode compilant?

I think it's related to codepages.

Peter

Read only

0 Likes
604

Peter,thanks for your reply.

Do you mean that we should compile the external application in Unicode?

Can we set the codepage before calling http_post?

because the external application is a interface program from a bank,maybe it is difficult to change it.

Pole

Read only

0 Likes
604

Hi Pole,

OK, if it's an external bank application and not an inhouse development, it's definetely difficult to change.

What I could suggest is to check the RFC destination settings in the SAP system. Maybe you can change something there.

For SAP-SAP connections, if I go to menu System Information -> Target system I can see the followings:

Character Set 1100

Integer BIG

Floating Point IE3

Might be helpful to see if it's different. I'm not sure if this info is available in non-SAP systems.

I think it's also worth to try to generate XML file and check the content with a Web Browser/XML editor where you can change the codepage.

Peter

Read only

0 Likes
604

Peter,thanks, we will try it.