cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass special characters/language characters

Former Member
0 Kudos

HI,

How to pass exact characters what I receive from source to target.. There are some special characters which are passing from source but they are converted in to some wired characters when reached to target system..

Scenario is XML-XML .... Is there any settings I am missing in sap pi ? passing Greeck/spanish/french characters.

Regards,

Rajeev

Accepted Solutions (1)

Accepted Solutions (1)

kenny_scott
Contributor
0 Kudos

Hi Rajeev,

if the scenarion is XML file to XML file then it is recommended to set the File Type parameter of sender or receiver channels as

"Binary",

i.e.,

see 'Q16. File Encoding'

of the note -

[#821267 FAQ: XI 3.0 / PI 7.0/ PI 7.1 File Adapter|http://service.sap.com/sap/support/notes/821267]

Regards

Kenny

Former Member
0 Kudos

HI,

Yes I set file content type as Binary but still I see european characters are not passing as required.

So I have to set the coding in Message mapping only?

How If I have multiple code pages (Greek, spanish, urdu and so on)? I have to write multiple Java mapping?

For flat files we have the option in File receiver CC to set the code page but for XML we dont have right?

Any any one came accross this situation? Please share.

Thanks

Rajeev

stefan_grube
Active Contributor
0 Kudos

> For flat files we have the option in File receiver CC to set the code page but for XML we dont have right?

The codepage is part of the XML header. If the XML header is missing, then the codepage is UTF-8 (default)

Check, if your incoming XML is correct. You can see this easily by open it with a web browser.

stefan_grube
Active Contributor
0 Kudos

> How If I have multiple code pages (Greek, spanish, urdu and so on)?

UTF-8 includes all possible characters in the world.

kenny_scott
Contributor
0 Kudos

Hi Rajeev,

is the encoding of the source XML files correct?

It's possible to use the XMLAnonymizerBean to change encoding for XML fiiles (e.g. to UTF-16)

[Configuring the Receiver File/FTP Adapter |http://help.sap.com/saphelp_nw70ehp2/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm]

but I think the source file encoding may be incorrect.

Regards

Kenny

Former Member
0 Kudos

Thanks Scott, It got resolved.

Rajeev

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Rajeev,

Please check out the blog - http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/9420 [original link is broken] [original link is broken] [original link is broken]

regards

sunil.

stefan_grube
Active Contributor
0 Kudos

> Please check out the blog - http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/9420 [original link is broken] [original link is broken] [original link is broken]

This blog is not about special language characters.

shivhare
Active Contributor
0 Kudos