Bug #10896: fgetcsv doesn't handle foreign characters properly
| From: | mirsoft at gmx dot net | Date: | Wed, 16 May 2001 08:21:39 +0000 |
| Subject: | Bug #10896: fgetcsv doesn't handle foreign characters properly | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-55448@lists.php.net to get a copy of this message | ||
From: mirsoft@gmx.net
Operating system: Windows 2000
PHP version: 4.0.4pl1
PHP Bug Type: Filesystem function related
Bug description: fgetcsv doesn't handle foreign characters properly
fgetcsv doesn't handle foreign characters properly.
For example if the csv file has following content:
Èína;2.1.2001;2-hý deò Nového roka
the comand $line = fgetcsv($fd, 4096, ";");
gets the array('na','2.1.2001','2-hý deò Nového roka').
(proper array is ('Èína','2.1.2001','2-hý deò Nového roka'),
using the fgets&explode function works without problem:
$rec = fgets($fd, 4096);
$line=explode (";", $rec);
)
--
Edit Bug report at: http://bugs.php.net/?id=10896&edit=1