on 12-21-2012 5:23 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.