PHP fgetcsv

by Piero Sartini <lists(at)pierosartini.de>

 Date:  Mon, 16 Apr 2001 14:09:25 +0200
 To:  hwg-techniques(at)hwg.org
  todo: View Thread, Original
Hi all.

Don't know if this is the right list but I hope so..
I'm writing a very very small link database using a csv-style file, mainly to 
learn some php.
These are the lines which read the file into an array.
--
$fp = fopen ($BOOKMARK_FILE,"r");
while ($bookmarks[] = fgetcsv ($fp, 1000, ",")) {}
fclose($fp);
--

My problem is how to get fgetcsv to handle special characters (�,�,',etc)
fputs seems to handle them correctly.
Any (hopefully) simple solutions would help me much.

Thanks in advance,
Piero Sartini <piero(at)sartini.de>
-
URI: http://www.pierosartini.de

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA