|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-06-03 11:43 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 08 04:00:01 2025 UTC |
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); )