ID: 12127
Updated by: rasmus
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Filesystem function related
Operating System: Windows 2000 Professional
PHP Version: 4.0.6
New Comment:

When running your script from the command-line version of PHP I get:
5 fields in line 1: 
Любимое    5,58 
5 fields in line 2: 
Любимое (витаминизированное)   345 9,15

ie. I see no missing characters.

Previous Comments:
------------------------------------------------------------------------

[2001-07-13 01:47:16] [EMAIL PROTECTED]

a.csv: ( imported from microsoft excel 2000 )

Любимое;;;;5,58
Любимое (витаминизированное);;;345;9,15

a.php:

<?
$row = 1;
$fp = fopen ("a.csv","r");
while ($data = fgetcsv ($fp, 1000, ";")) {
    $num = count ($data);
    print "$num fields in line $row: <br>";
    $row++;
    for ($c=0; $c<$num; $c++) {
        print $data[$c]." ";
    }
    echo "<br>";
}
fclose ($fp);

?>

output from a.php:

5 fields in line 1: 
бимое 5,58 
5 fields in line 2: 
бимое (витаминизированное) 345 9,15 
---------------------------------------------

some letters are lost.

------------------------------------------------------------------------



Edit this bug report at http://bugs.php.net/?id=12127&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]

Reply via email to