diff options
author | Ignace Nyamagana Butera <nyamsprod@gmail.com> | 2014-08-07 13:02:40 +0200 |
---|---|---|
committer | Ignace Nyamagana Butera <nyamsprod@gmail.com> | 2014-08-07 13:02:40 +0200 |
commit | 0bf043d9bd4f86102fa075d605ded9e153648ad4 (patch) | |
tree | f5cca85bd434952524c7a2cc5e88dc132b49f6f0 /examples/json.php | |
parent | 352820cb5815f7cf4af9dc6851525ed273721c77 (diff) | |
download | csv-0bf043d9bd4f86102fa075d605ded9e153648ad4.zip csv-0bf043d9bd4f86102fa075d605ded9e153648ad4.tar.gz csv-0bf043d9bd4f86102fa075d605ded9e153648ad4.tar.bz2 |
deprecated get/setEnconding method
Diffstat (limited to 'examples/json.php')
-rwxr-xr-x | examples/json.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/json.php b/examples/json.php index f1bf3e9..06293a6 100755 --- a/examples/json.php +++ b/examples/json.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'); $inputCsv->setFlags(SplFileObject::DROP_NEW_LINE|SplFileObject::READ_AHEAD|SplFileObject::SKIP_EMPTY); $res = json_encode($inputCsv, JSON_PRETTY_PRINT|JSON_HEX_QUOT|JSON_HEX_TAG|JSON_HEX_AMP|JSON_HEX_APOS); if (JSON_ERROR_NONE != json_last_error()) { |