diff options
Diffstat (limited to 'examples/extract.php')
-rwxr-xr-x | examples/extract.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/extract.php b/examples/extract.php index 165af6d..a33c985 100755 --- a/examples/extract.php +++ b/examples/extract.php @@ -9,7 +9,7 @@ require '../vendor/autoload.php'; $inputCsv = Reader::createFromPath('data/prenoms.csv'); $inputCsv->setDelimiter(';'); -$inputCsv->setEncoding("iso-8859-15"); +$inputCsv->setEncodingFrom("iso-8859-15"); //get the header $headers = $inputCsv->fetchOne(0); @@ -20,7 +20,7 @@ $res = $inputCsv->setOffset(800)->setLimit(25)->fetchAll(); <!doctype html> <html lang="fr"> <head> - <meta charset="<?=$inputCsv->getEncoding()?>"> + <meta charset="<?=$inputCsv->getEncodingFrom()?>"> <title>\League\Csv\Reader simple usage</title> <link rel="stylesheet" href="example.css"> </head> |