php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10896 fgetcsv doesn't handle foreign characters properly
Submitted: 2001-05-16 04:21 UTC Modified: 2001-06-03 11:43 UTC
From: mirsoft at gmx dot net Assigned:
Status: Closed Package: Filesystem function related
PHP Version: 4.0.4pl1 OS: Windows 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
17 + 47 = ?
Subscribe to this entry?

 
 [2001-05-16 04:21 UTC] mirsoft at gmx dot net
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);
)


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-03 11:43 UTC] sniper@php.net
I can't reproduce this with latest CVS.
Considered fixed. You should try PHP 4.0.5 too.
This might have been fixed in it too.

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 10:01:30 2024 UTC