cancel
Showing results for 
Search instead for 
Did you mean: 

HTML encoding: ISO-8859-1

Former Member
0 Kudos

Hi Experts,

We have a scenario Synch HTTP to RFC, where in the response message we have a requirement to encode some of the fields using encoding: ISO-8859-1

for eg:

ITEMS                                             ITEMS
  !                                                 !
  VTEXT------------encoding: ISO-8859-1---------->VTEXT

Please suggest the way to accomplish this requirement.

Thanks in advance,

MK

Accepted Solutions (0)

Answers (3)

Answers (3)

stefan_grube
Active Contributor
0 Kudos

You can use the SOAP adapter in no-soap mode. There you can specify the encoding of the response as URL parameter.

See note 856597 for details.

Former Member
0 Kudos

Hi Stefan,

We have to use Synch HTTP adapter for the scenario, as

* client sends request message to PI as URL parameters.
* client application is not capable of consuming WSDL.

Please let me know if can still use SOAP adapter, and how.

Thanks,

MK

stefan_grube
Active Contributor
0 Kudos

I am not sure if the HTTP adapter accepts the payload as URL-parameter.

Have you tested this already?

Former Member
0 Kudos

Hi refer this thread may get some help

also refer this PDf

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/502991a2-45d9-2910-d99f-8aba5d79...

Regards

Abhishek

Edited by: Abhishek Agrahari on May 12, 2009 8:20 AM

Former Member
0 Kudos

Hello,

https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/502991a2-45d9-2910-d99f-8aba5d79...

You can also write a UDF for the encoding. PFB the example for the base64 encoding in PI.

public static String Encode(String strDecoded)

{

String sOut="";

try

{

sOut = Base64.encode(strDecoded.getBytes("UTF-16BE"));

} catch (UnsupportedEncodingException e)

{

// TODO Auto-generated catch block

e.printStackTrace();

}

return sOut;

}

Thanks and regards

Hemant

Former Member
0 Kudos

Thanks Hemant.

can you please suggest on what values we can use to convert Encoding: ISO-8859-1

The default encoding is UTF-8 (PI 7.1) , right?

Former Member
0 Kudos

Thanks Hemant.

can you please suggest on what values we can use to convert Encoding: ISO-8859-1

The default encoding is UTF-8 (PI 7.1) , right?