Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I'm also wondering if there is a way to choose the escape character when saving OpenOffice as csv. phpmyadmin was not accepting a 9,000 line 50+ column spreadsheed in .ods format and there doesn't seem to be a way to choose the escape character when saving as CSV.</p> <p>So I had to save as csv, open in word, and use some find/replace tricks to change the escape character to \ (back slash). Default is to use double quotes to escape double quotes, and phpmyadmin won't accept that format.</p> <p>To properly convert the file to use \ (back-slash) to escape double-quotes, you have to do this:</p> <ol> <li>Pick a placeholder character string, e.g. 'abcdefg', that does not occur anywhere in the csv.</li> <li>Find/replace """ (three double-quotes in a row) with the placeholder. This is to prevent possibly incorrect results in the next step.</li> <li>Find/replace "" (two quotes in a row, representing one quote that should be escaped), with \" (back-slash double-quote). If you did this without find/replacing """ it's conceivable you could get a result like "\" instead of \"". Better safe than sorry.</li> <li>Find/replace the placeholder string with \"" (back-slash double-quote double-quote).</li> </ol> <p>That will work, unless you happen to have more than one double-quote in a row in your original text fields, which would result in as many as five double-quotes in a row in the resulting .ods or .xlsx csv file (two double-quotes for each escaped double quote, plus another double quote if its at the end of the field). </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload