#30335 [Opn->Fbk]: fgetcsv + foreign characters
| From: | derick@php.net | Date: | Wed, 06 Oct 2004 08:32:26 +0000 |
| Subject: | #30335 [Opn->Fbk]: fgetcsv + foreign characters | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-67176@lists.php.net to get a copy of this message | ||
ID: 30335
Updated by: derick@php.net
Reported By: gruszczol1 at poczta dot onet dot pl
-Status: Open
+Status: Feedback
Bug Type: Filesystem function related
Operating System: linux
PHP Version: 5.0.2
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[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