Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Michael Simpson

    (@msimpson)

    I cannot reproduce this problem. I tested by:
    – creating a CF7 form with a text and textarea field
    – submitted data in the form and put line breaks in the textarea field
    – from admin page, exported the form as Plain CSV (UTF-8)
    – I examined the .csv file. It is in the format expected which line breaks, but with quotes around all fields
    – I opened the file in Excel and all the fields and text are correct. Excel did not show the line breaks, it put in spaces instead. But that is a question of how Excel chooses to import the data.

    PS. “Show line breaks in submitted data table” only applies to the admin table and it not related to your issue.

    Thread Starter vice07

    (@vice07)

    Steps 1-4 are correct.

    Step 5 – My Excel shows the line breaks. I even tryied Text to Columns tool, but where he meets the line breaks the Excel breaks ??

    Is there a way to attach / send you my CSV file?

    Or is there a way to remove line breaks on form submit?

    I also noticed that wp_cf7dbplugin_submits table doesn’t have edit / delete options on PHPMyAdmin like other tables…

    Thread Starter vice07

    (@vice07)

    Thread Starter vice07

    (@vice07)

    On ExportToCsvUtf16le.php

    // Excel does not like \n characters in UTF-16LE, so we replace with a space
            $text = str_replace("\n", ' ', $text);

    THIS needs to be done in ExportToCsvUtf8.php too, but the code is different and i don’t know where to change… Any help now?

    Plugin Author Michael Simpson

    (@msimpson)

    This should not be needed in ExportToCsvUtf8.php because new line characters should be OK in that format (CSV in UTF-8). It works for me OK. This suggests to me this is either some Excel version or setting, or you have data with some other control character that should be accounted for. Would you send the file to me to look at?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Export CSV broke by new line in field’ is closed to new replies.