Main menu

CSV parsing problem with PHP's fgetcsv

Published by dnovikov on Mon, 03/21/2011 - 17:35

Just a short note. I noticed that fgetcsv is not always correctly working with UTF-8 CSV files. It can be fixed by surrounding all fields with quotes or another enclosure symbol.

Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
By submitting this form, you accept the Mollom privacy policy.