Nate Weiner

  • Archive
  • RSS

When Dynamically Generating CSV, Don’t Forget the Quotes

I was generating CSV files with PHP so that a client could easily export their mailing list from the database when I hit a snag with loading the generated files on a Mac.

I received the error message:

“SYLK: file format is not valid.” when opening the file in Excel on OS X.

To solve the problem, simply make sure all data is enclosed with quotes.

Ex: ‘ID’,’First Name’, ‘Last Name’

Found this on Microsoft’s website: http://support.microsoft.com/kb/323626

    • #mac
    • #php
    • #web-development
  • 4 years ago
  • Permalink
  • Share
    Tweet
← Previous • Next →

About

Prototyper, water waster, developer of Pocket.

 

Follow

Twitter: @NateWeiner
Vimeo: Nate Weiner
500px: Nate Weiner
Blog: RSS

Pages

  • Contact
  • RSS
  • Random
  • Archive
  • Mobile

Effector Theme by Carlo Franco.

Powered by Tumblr