ID: 31632 Updated by: [EMAIL PROTECTED] Reported By: nickmc at codemasters dot com -Status: Open +Status: Bogus Bug Type: Filesystem function related Operating System: Windows 2000 Professional PHP Version: 4.3.9 New Comment:
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php No unicode support in PHP's standard string functions. Previous Comments: ------------------------------------------------------------------------ [2005-01-21 13:07:24] nickmc at codemasters dot com I've since read that PHP has no unicode support, so I'd guess that's the reason. ------------------------------------------------------------------------ [2005-01-21 13:01:04] nickmc at codemasters dot com Description: ------------ Reading from a unicode-encoded text file with fgetcsv() works almost as intended, but each string in the resulting array contains a space after each character. Reproduce code: --------------- The string (saved as a unicode text file, tab delimited): "hello, this is a text file 1 2 3 4 5 6" Read using: $data = fgetcsv ($fp, 1000, "\t") Expected result: ---------------- You'd expect the output to be the same as if the file was ANSI format. Actual result: -------------- Browser output from a print_r($data) (looks OK): Array ( [0] => hello, this is a text file [1] => 1 [2] => 2 [3] => 3 [4] => 4 [5] => 5 [6] => 6 ) Page HTML: Array ( [0] => h e l l o , t h i s i s a t e x t f i l e [1] => 1 [2] => 2 [3] => 3 [4] => 4 [5] => 5 [6] => 6 ) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=31632&edit=1
