diff options
author | ignace nyamagana butera <nyamsprod@gmail.com> | 2014-02-23 08:55:54 +0100 |
---|---|---|
committer | ignace nyamagana butera <nyamsprod@gmail.com> | 2014-02-23 08:55:54 +0100 |
commit | 1f705f66f2589b6b153458d4356b3929cb8d2459 (patch) | |
tree | bd5855a21d7805d7d841c6ffecd4192454b1085f | |
parent | fb88a9a439a12661abb5826becbc9cac3bae5630 (diff) | |
download | csv-1f705f66f2589b6b153458d4356b3929cb8d2459.zip csv-1f705f66f2589b6b153458d4356b3929cb8d2459.tar.gz csv-1f705f66f2589b6b153458d4356b3929cb8d2459.tar.bz2 |
Adding LC_TYPE tip
-rw-r--r-- | README.md | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -51,6 +51,8 @@ Usage * If you are dealing with non-unicode data, specify the encoding parameter using the `setEncoding` method otherwise your output conversions may no work. +* If you have your LC_CTYPE set to a locale that's using UTF-8 and you try to parse a file that's not in UTF-8, PHP will cut your fields the moment it encounters a byte it can't understand (i.e. any outside of ASCII that doesn't happen to be part of a UTF-8 character which it likely isn't). [This gist will show you a possible solution](https://gist.github.com/pilif/9137146) to this problem by using [PHP stream filter](http://www.php.net/manual/en/stream.filters.php). This tip is from [Philip Hofstetter](https://github.com/pilif) + * When merging multiples CSV documents don't forget to set the main CSV object as a `Bakame\Csv\Writer` object with the `$open_mode = 'a+'` to preserve its content. This setting is of course not required when your main `Bakame\Csv\Writer` object is |