Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Setting charset for the portal web service response XML


We have developed a portal service which is exposed as a web service. The web service is being consumed by a .net client. We have some international character data in the EP system, which we are trying to stream across, the issue we are encountering is we are not able to see the international characters in .NET. The characters are encoded to ???.

I captured the SOAP response using web service checker in NWDS, and i am able to see proper data. I searched the net and found out that it may be issue with the content-type header not being set properly. The content-type header i capture is as follows

Content-Type= "text/xml", but it should have been Content-Type="text/xml; charset=UTF-8".

Has anyone come across a similar issue? How do i set the charset part of the Content-Type string in the portal service or do i need to set it at the SAP j2ee engine level.

Any help would be very much appreciated.



Not what you were looking for? View more on this topic or Ask a question