You are here

public function ParserCSV::setEncoding in Feeds 7.2

Sets the source file encoding.

By default, the encoding is UTF-8.

Parameters

string $encoding: The encoding to set.

File

libraries/ParserCSV.inc, line 151
Contains CSV Parser.

Class

ParserCSV
Functionality to parse CSV files into a two dimensional array.

Code

public function setEncoding($encoding) {
  $this->fromEncoding = $encoding;
}