cancel
Showing results for 
Search instead for 
Did you mean: 

encoding hebrew utf8 string from r/3

Ronib
Participant
0 Kudos

hi,

i call rfc (via xi) with utf-8 , and should get a response with hebrew letters , but all i see is something like " ׳‘׳™׳× ׳™׳ ׳�׳™ ׳�׳™׳ ׳™׳�׳¨׳§׳˜/׳™׳’׳�׳� "

how can i convert it to utf-16 ?

thanks.

Roni.

sorry , i think i better ask in java forum. can someone delete this post?

Message was edited by:

Roni Bar - David

Accepted Solutions (0)

Answers (5)

Answers (5)

Ronib
Participant
0 Kudos

the solution is

Reader isr = new InputStreamReader(httpConn.getInputStream(),"UTF-8");

henrique_pinto
Active Contributor
0 Kudos

There are a lot of ways in standard xi, dont need to create custom code for that.

An easy way is a xslt mapping as below:

...
<xsl:output method="xml" version="1.0" encoding="UTF-16"/>
<xsl:template match="/">
  <xsl:copy-of select="."/>
<xsl:template>
...

Regards,

Henrique.

bhavesh_kantilal
Active Contributor
0 Kudos

Roni,

><i>sorry , i think i better ask in java forum. can someone delete this post?</i>

If you can post your entire scenario , I am pretty sure Stefan or somebody else would be more than willing to help. FYI, Stefan is a member of RIG @ SAP.

Regards

Bhavesh

stefan_grube
Active Contributor
0 Kudos

What is the sceanrio, what is the sender, what receiver?

Is the R/3 system unicode, or what is the codepage of the R/3?

Stefan

bhavesh_kantilal
Active Contributor
0 Kudos

In the reciver RFC adapter, did you try changing the log on language to German and check if it works?

Regards

Bhavesh

Former Member
0 Kudos

Hi Roni,

You can handle it through file encoding parameter. you can specify the utf-8,utf-16..

You can find in file adaptor-> processing parameter->file encoding.

Ravi