ID: 48353 Updated by: [email protected] -Summary: fgetcsv inserts whitespaces Reported By: uhp at gmx dot net -Status: Open +Status: Bogus Bug Type: Filesystem function related Operating System: Debian lenny PHP Version: 5.2.9 New Comment:
Obviously it is utf-8 encoded. Previous Comments: ------------------------------------------------------------------------ [2009-05-21 10:06:50] uhp at gmx dot net Description: ------------ I'm native german, so I hope you understand my problem. fgetcsv inserts whitespaces after each character. The file looks like Campaign Campaign Daily Budget I think the same problem is described here http://bugs.php.net/bug.php?id=31632 but I don't know if my file is also unicode-encoded Reproduce code: --------------- $handle = fopen("./test.csv", "r"); $headlines = fgetcsv($handle, 1000, "\t"); print_r($headlines); Expected result: ---------------- Array ( [0] => Campaign [1] => Campaign Daily Budget [2] => Ad Group } Actual result: -------------- Array ( [0] => C a m p a i g n [1] => C a m p a i g n D a i l y B u d g e t [2] => A d G r o u p } ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=48353&edit=1
