Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7771597
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T16:41:29+00:00 2026-06-01T16:41:29+00:00

My client is providing me with an XSLX spreadsheet that, in some columns, can

  • 0

My client is providing me with an XSLX spreadsheet that, in some columns, can have single and/or double quotes. I’m opening it up in LibreOffice and saving it as a CSV. Then I try to import it in phpMyAdmin, but every time the import gets tripped up on a line with either single or double quotes, depending on which I indicate to use for escaping.

When saving the XLSX as a CSV I select UTF-8 for encoding (it’s defaulting to Windows-1252), comma for column delimiter, leave “Save cell content as shown” checked. For “Text delimiter” and “Quote all text cells”, I’ve tried both options each (single and double quotes for delimiter and checked/unchecked for Quote).

Then in phpMyAdmin, for the import I leave UTF-8 selected, columns enclosed with double-quote (or single quote, matching what I selected in LibreOffice) and for columns escaped with I’ve tried backslash and double-quote and single-quote.

In ALL cases I keep getting the error “Invalid column count in CSV input on line n.” The line number depends on what I selected for column escape/delimiter (single or double quote). If I selected double quote as delimiter, I get the error on the first line that has a column with an unescaped single quote in it, and vice versa for single quote delimiters.

How can I get this spreadsheet imported with both single and double quotes in the cells?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T16:41:30+00:00Added an answer on June 1, 2026 at 4:41 pm

    Okay, after some more research and “fiddling around” I figured it out.

    In my situation, for the import I selected CSV using LOAD DATA, used double quotes for “columns enclosed with”, and cleared the columns escaped with.

    LOAD DATA apparently tells phpMyAdmin to allow MySQL to handle the file directly. I’m not sure why this would affect my issue if I can specify delimiters, etc for the “regular” CSV import selection, but it seems to have worked for me!

    Hope this helps someone else out.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are providing a snippit of HTML that our client can embed on their
My client can't read iPhone's default fonts, the size is too small. I have
I have a client who has a web service providing several different top-level entities.
We have a client that is closing its doors. We want to redirect all
I have a client that insists a part of their application will allow for
I have a PHP application that makes extensive use of Javascript on the client
Client side javascript code creates some elements (about 50-100) in a cycle: for (var
Client is requesting a single track to be heard across the website. Generally I
My client does not want to have ftp on the production box (understandable). We
I wrote a small tcp client using boost::asio, providing the following function: typedef boost::function<void(const

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.