note 113200 added to function.fgetcsv
| From: | tomasz at marcinkowski dot pl | Date: | Wed, 11 Sep 2013 20:48:42 +0000 |
| Subject: | note 113200 added to function.fgetcsv | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-196234@lists.php.net to get a copy of this message | ||
For anyone else struggling with disappearing non-latin characters in one-byte encodings - setting
LANG env var (as the manual states) does not help at all. Look at LC_ALL instead.
In my case it was set to "pl_PL.utf8" but since my input file was in CP1250 most of polish
characters (but not all of them!) had gone missing and city of "Åódź" had become
just "dź". I've "fixed" it with "pl_PL".
----
Server IP: 46.17.113.2
Probable Submitter: 87.99.59.164
----
Manual Page -- http://php.net/manual/en/function.fgetcsv.php
Edit -- https://master.php.net/note/edit/113200
Del: integrated -- https://master.php.net/note/delete/113200/integrated
Del: useless -- https://master.php.net/note/delete/113200/useless
Del: bad code -- https://master.php.net/note/delete/113200/bad+code
Del: spam -- https://master.php.net/note/delete/113200/spam
Del: non-english -- https://master.php.net/note/delete/113200/non-english
Del: in docs -- https://master.php.net/note/delete/113200/in+docs
Del: other reasons-- https://master.php.net/note/delete/113200
Reject -- https://master.php.net/note/reject/113200
Search -- https://master.php.net/manage/user-notes.php