diff options
Diffstat (limited to 'examples/xml.php')
-rwxr-xr-x | examples/xml.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/xml.php b/examples/xml.php index a55ba3f..8db4c7c 100755 --- a/examples/xml.php +++ b/examples/xml.php @@ -8,7 +8,7 @@ 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->setDelimiter(';'); $doc = $inputCsv->toXML('csv', 'ligne', 'cellule'); $xml = $doc->saveXML(); |