summaryrefslogtreecommitdiffstats
path: root/examples/download.php
diff options
context:
space:
mode:
Diffstat (limited to 'examples/download.php')
-rwxr-xr-xexamples/download.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/download.php b/examples/download.php
index 1a769e6..233d4f5 100755
--- a/examples/download.php
+++ b/examples/download.php
@@ -5,5 +5,5 @@ use League\Csv\Reader;
require '../vendor/autoload.php';
$inputCsv = Reader::createFromPath('data/prenoms.csv');
-$inputCsv->setEncoding('ISO-8859-15');
+$inputCsv->setEncodingFrom('ISO-8859-15');
$inputCsv->output('firstname.csv'); //specifying a filename triggers header sending