#30335 [Fbk->NoF]: fgetcsv + foreign characters
| From: | php-bugs at lists dot php dot net | Date: | Fri, 15 Oct 2004 23:00:05 +0000 |
| Subject: | #30335 [Fbk->NoF]: fgetcsv + foreign characters | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-67636@lists.php.net to get a copy of this message | ||
ID: 30335
Updated by: php-bugs@lists.php.net
Reported By: gruszczol1 at poczta dot onet dot pl
-Status: Feedback
+Status: No Feedback
Bug Type: Filesystem function related
Operating System: linux
PHP Version: 5.0.2
New Comment:
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
Previous Comments:
------------------------------------------------------------------------
[2004-10-07 17:15:23] moriyoshi@php.net
Try setting LC_CTYPE (or LANG) environment variable to
"pl_PL.ISO-8859-2".
------------------------------------------------------------------------
[2004-10-07 01:38:48] iliaa@php.net
Specific to 5.X
------------------------------------------------------------------------
[2004-10-06 11:40:37] gruszczol1 at poczta dot onet dot pl
It was tested with iso-8859-2 and windows-1250 text file.
http://republika.pl/gruszczol1/fgetcsv_bug_example.tgz
------------------------------------------------------------------------
[2004-10-06 10:32:21] derick@php.net
This example is useles, as we don't know which encoding you are using.
Please put this script in a zip file and provide the link to it in this
bugreport.
------------------------------------------------------------------------
[2004-10-06 10:29:45] gruszczol1 at poczta dot onet dot pl
Description:
------------
fgetcsv() doesn't read foreign chracters which are on the beginning of
the field.
Similar bug in http://bugs.php.net/bug.php?id=10896 but it has
status
closed.
Reproduce code:
---------------
File contains:
±abc|¶abc|¿abc¿
Example code:
$aqq=fgetcsv($fp, 4000, "|");
echo $aqq[0].$aqq[1].$aqq[2];
Expected result:
----------------
Expected result:
±abc¶abc¿abc¿
Actual result:
--------------
Actual result:
abcabcabc¿
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30335&edit=1