From: [EMAIL PROTECTED]
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
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]