Skip to Content

Handling file name with accented characters in SAP PI

Dec 18, 2017 at 03:49 PM


avatar image

Hello Experts,

I have a simple outbound pick and drop scenario. But, the file name has accented character ex. ABC_Sàrl_ddMMyyyy.txt . When the file is picked by PI, the character à gets converted to à with additional space. How can this be handled?

Found an old note: . Is this the only solution to the above issue?

we are using SAP PI 7.4 Java stack.

File Sender: Special Characters in File Names

  • Q: I am trying to get the File Adapter to poll a file, which contains special characters (e.g., accented characters or umlauts) in its file name. However, irrespectively of the wildcard mask I specify in the File Adapter sender channel configuration, the file does not get picked up. Which configuration setting do I need to change to get my scenario working?
  • A: 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=<encoding>" to the Java VM parameters section of the SAP J2EE Config Tool.
    Additionally, you need to set the "LANG" environment variable to a locale that supports more than 7 bits, such as "de.ISO8859-1". The encoding you specify in the LANG environment variable needs to match the encoding set via "file.encoding".
    You can persistently configure the environment variable by setting it in the profile $HOME/.sapenv_$HOSTNAME.csh of the <sid>adm user: setenv LANG de.ISO8859-1



10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Peter Wallner Dec 19, 2017 at 12:06 PM


Does it matter if the character is changed? I assume the receiver wants a proper filename.

The note you found sounds like an option.
Or you set up a java map in which you set the file name properly and save it to the "DynamicConfiguration".

Best regards, Peter

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Peter,

Yes, the same file name is being used by receiver system(with special characters). Since this is a pick and drop scenario, creating Java mapping will be an additional step and would not be accepted.