cancel
Showing results for 
Search instead for 
Did you mean: 

Cyrillic character issue in sap pi

Former Member
0 Kudos

Hi Expert,

Data will be coming from the source xml file which contain cyrillic characters and PI has to handle that data and send it to ECC  system throguh IDoc Receiver Adapter. Our scenario : FTP(Sender) - IDOC (Receiver). Pi file adapter is picking the xml file from source directory path.

The file encoding we have used is "ISo-8859" file type as "TEXT", we have also tried checking by giving the file name as"Binary", but we are still facing the issue.

Thanks in advance,

Priya

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Priya,

An XML file's encoding is set in the XML header, which is later interpreted when parsing the XML, e.g. in the mapping. So first check in your payload whether encoding is UTF-8.

example:

<?xml version="1.0" encoding="utf-8"?>

Generally, the message payload of an XI message is treated as UTF-8 when it needs to be converted from or into a different encoding. So, what you specify in the File Sender channel is the source encoding for an encoding conversion to UTF-8. On the other hand, in the Receiver channel, you specify the target encoding for a conversion from UTF-8. If you configure a channel's File Type setting as "Binary", no conversion will be applied.

Use File Type -> text-> File Encoding = UTF-8,destEncoding=UTF-8, it may solve your issues.

Else find the below URL to achieve this by using xml anonymizer bean.

http://help.sap.com/saphelp_nw04/helpdata/en/45/d169186a29570ae10000000a114a6b/content.htm

Regards,

Sagarika

Answers (1)

Answers (1)

nabendu_sen
Active Contributor
0 Kudos

Hi Priya,

Please check the below blog: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/502991a2-45d9-2910-d99f-8aba5d79f...

I think CP1251 contains Cyrillic alphabet.

http://en.wikipedia.org/wiki/Windows-1251

For ß you need western Europe: CP1252 or more common: ISO 8859-1

http://en.wikipedia.org/wiki/ISO/IEC_8859-1

Otherwise check with "ISO-8859-5" or "UTF-16".