How to set the encoding for the files downloaded by Talend when using tHttpRequest or tFileFetch components?

Question

When building Talend components using Java, how can I define the file encoding from Studio?

 

Answer

Follow these steps to add the JVM Option -Dfile.encoding=UTF8:

  1. Open the Job from Studio that includes the tHttpRequest or tFileFetch components.

  2. On the Run tab, select Advanced Settings.
  3. Select Use specific JVM arguments and add the JVM option -Dfile.encoding=UTF8 to set the encoding to the UTF-8 character set.

Version history
Revision #:
5 of 5
Last update:
‎07-03-2018 04:05 PM
Updated by:
 
Contributors