cancel
Showing results for 
Search instead for 
Did you mean: 

Code page conversion error Codepage Conversion from code page UTF-8 to system code page

Former Member
0 Kudos

Hi All,

Can anybody please tell me how to solve this error

Code page conversion error Codepage Conversion from code page UTF-8 to system code page

I have a iDoc --- PI ---- HTTPS Scenario and want to convert the header (prolog) and body (Epilog) into ISO-8859-1

I am able to convert the body through XSLT Mapping but want to know how to convert Header (prolog).

I have tried various different option in receiver HTTP Adapter but nothing works and I am getting the following errors.

   

Input Character

<STRAS>Neurottstraße 16</STRAS>

Output Character

<STRAS>Neurottstra#e 16</STRAS>

Thanks

Iqbal

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member184681
Active Contributor
0 Kudos

Hi Iqbal,

Please refer to SAP Help for receiver plain HTTP adapter, since I believe you misunderstood the functionality of Prolog and Epilog fields:

http://help.sap.com/saphelp_nwpi71/helpdata/en/43/64dbb0af9f30b4e10000000a11466f/content.htm

Especially the example illustrated with a graphic (at the end) should clarify well. So, in Prolog and Epilog fields, you should write the required prolog and epilog contents, instead of some encoding name.

Regards,

Greg

Former Member
0 Kudos

HI Greg,

I am still bit confused with the example.

Do you mind tell me how to use Prolog and Epilog and does it really solve my problem.

Appreciate your help in this issue.

Thanks,

Iqbal

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

Can you try removing your XSLT mapping and just specifying ISO-8859-1 under the XML Code?

Let us know of the results.

Regards,

Mark

Former Member
0 Kudos

Hi Mark,

I have a iDoc --- PI ---- HTTPS Scenario and want to convert the header (prolog) and body (Epilog) into ISO-8859-1

I am able to convert the body through XSLT Mapping but want to know how to convert Header (prolog).

Do you mind telling me how to set Prolog (header) in XSLT Mapping please.

Thanks,

Iqbal

former_member184681
Active Contributor
0 Kudos

Hi,

First of all, I don't thin PI allows you to create the Prolog in mapping. This is why this option is available in receiver CC settings. Secondly, I think you don't really convert the Prolog at all - you have an option to write any text to be sent as prolog, so you just have to type it there in the correct way. SAP Help really gives you lot of details about how you should do the conversion (yourself):

The encoding method that separates the form fields and their data uses the following rules:

○       Separate individual form elements, including their data, by using the ampersand (&).

○       Separate the name and data of a form element by using an equals sign (=).

○       Replace blanks in the entered data (for example, in multiple words) by using a plus sign (+).

○       Rewrite all characters with the (enhanced) ASCII values 128 to 255 (hexadecimal 80 to FF) by using a hexadecimal character sequence, starting with a percentage sign (%) and followed by the hexadecimal value of the character.

For example, the German umlaut ö is rewritten as %F6 in the ISO-8859-1 character set.

○       All characters that occur in these rules as control characters (&, +, =, and %) are also rewritten hexadecimally in the same way as higher value ASCII characters.

Regards,

Greg

Former Member
0 Kudos

Hi Greg,

Thanks for your help.

It sound like I need to use (&, +, = , %) in the Prolog field or may be only %.

One thing which I don't understand is that in the picture of SAP help they have used

Prolog

&cmd=T

&loadXML=

 

Epilog

&end=yes

Does that me we need to use the variable or something.

Do you have any example of this scenario?

Thanks,

Iqbal

former_member184681
Active Contributor
0 Kudos

Unfortunately I don't have any examples of my own, but a few options are discussed in this thread:

http://scn.sap.com/thread/335481

Also, there are some more interesting search results, if you need more:

http://search.sap.com/ui/scn#query=receiver+http+adapter+prolog&startindex=1&filter=scm_a_site%28scm...

Regards,

Greg