Skip to Content
avatar image
Former Member

Handling file name with accented characters in SAP PI

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



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • 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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.