Activating the encoding parameter for file readers

Sometimes the text input files you get use a different encoding and you need to configure your reader. You enable the encoding parameter of SPL’s base FileReader in the derived file readers of the framework.

About this task

Enable the encoding parameter for the FileReaderCSV reader family.

Procedure

  1. In the file <PathToYourApplication>/config/config.cfg, find the ite.ingest.reader.encoding parameter description
  2. Enable the compression parameter by assigning the base class names to this parameter, for example: ite.ingest.reader.encoding=FileReaderCSV

The line activates encoding for all for file readers that derive from FileReaderCSV. If you have two readers that derive from FileReaderCSV, it is enabled for both!