cancel
Showing results for 
Search instead for 
Did you mean: 

Language Characters in File Name

Former Member
0 Kudos

Hi All,

Need your help to solve a problem which I face in my current interfac. I am currently working on SFTP to File scenario where we use Advantco SFTP Adapter. The problem is SFTP sender adapter doesn't process the files which have Language characters in the File Name. No errors are thrown and no processing of the file happens in Message Monitoring. One probable option which I already tried was to use the text encoding but that works on the content and not the file name. Just wanted to check if any body can help in suggesting some solution. Also, even for content is there a need to change the encoding for Language characters or they should be left as Binary Type. PI is SAP PI 7.11.

How does the standard SAP PI File Adapter handle scenario with File Name having language characters. Is it correctly processed or how do we handle that for correct processing, may be the same can be applied for SFTP adapter.

Best Regards,

Pratik

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi All,

File Adapter doesn't support language characters in file name.

Thanks for your inputs.

Best Regards,

Pratik

Former Member
0 Kudos
Former Member
0 Kudos

Hi Pratik,

The requirement can be achieved using JAVA mapping.

Check the below 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]

The best way is to keep the file name scheme as *.txt. So, it will pick up all the files. For this, ensure only that particular format should be done in the specified directory.

Thanks,

Former Member
0 Kudos

Hi Pratik,

Under certain operating system platforms, such as Solaris, the

APIs used by the Java Runtime (JRE) are not Unicode-aware.

Consequently, the JRE needs to be configured to correctly

interpret the character set it receives from the operating

system.

This is configured through the "file.encoding" system property as

well as the "LANG" environment variable.

Make sure you set "file.encoding" to a character set (such as

ISO-8859-1) that supports the special characters you would like

to process. This system property can be configured by appending

"-Dfile.encoding=adm user: setenv LANG de.ISO8859-1. For additional details

on 'How to Work with Character Encodings in PI' the following

guide can also be followed:

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km

.cm.docs/library/uuid/502991a2-45d9-2910-d99f-8aba5d79fb42

I hope this helps.

Best Regards,

Gábor