ID: 45356
Comment by: mk at kurznet dot com
Reported By: al at txtlocal dot com
Status: No Feedback
Bug Type: Filesystem function related
Operating System: Linux
PHP Version: 5.2.6
New Comment:
if have the same problem with php 5.2.6
the csv file looks like this: äüö123äüö;auo123äüö
$handle = fopen($path."Mappe3.csv","r");
while ($data = fgetcsv ($handle, 4096, ";")) {
print_r($data);
}
fclose ($handle);
Array
(
[0] => 123äüö
[1] => auo123äüö
)
with PHP 5.2.5 and 4.4.8 everything is ok ?
is this a bug or a feature ?
Previous Comments:
------------------------------------------------------------------------
[2008-07-27 01:00:01] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2008-07-19 17:50:18] [EMAIL PROTECTED]
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc. If the script requires a
database to demonstrate the issue, please make sure it creates
all necessary tables, stored procedures etc.
Please avoid embedding huge scripts into the report.
I'm unable to reproduce it with a simple scripts neither with 5.2.6 nor
with 5.3.0-dev.
------------------------------------------------------------------------
[2008-06-25 18:08:31] al at txtlocal dot com
If you have csv file:
name,price
James,£150
fgetcsv() will remove the £.
All other chars seem to be fine.
I have searched forums for an answer to this and there are a few
people
reporting the same - but no definitive answer.
In addition - this is only if the £ character in the first char in a
"cell". This would work fine:
name,price
James,1£50
------------------------------------------------------------------------
[2008-06-25 17:46:40] al at txtlocal dot com
In addition - this is only if the £ character in the first char in a
"cell". This would work fine:
name,price
James,1£50
------------------------------------------------------------------------
[2008-06-25 17:45:30] al at txtlocal dot com
Description:
------------
If you have csv file:
name,price
James,£150
fgetcsv() will remove the £.
All other chars seem to be fine.
I have searched forums for an answer to this and there are a few people
reporting the same - but no definitive answer.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45356&edit=1