• Resolved varpenny

    (@varpenny)


    WPTables Version: 1.3.8

    Problem:
    1. I added a table using MySQL query. But it couldn’t export data existed in table.
    2. It appeared garbled fonts in CSV file when there were fonts like Chinese or Korean.

    Possible Solution:
    1. /includes/export/class-wptables-csv-export.php, at line 21, add codes to support mysql query:

    if ($post->post_mime_type == 'mysql/db-table') {
      ...
    } elseif ($post->post_mime_type == 'mysql/mysql-query') {
      $query_str = $post->post_content;
      $loader = new WPTables_MySqlLoader();
      $this->data = $loader->load_query($query_str);
    else {
      ...
    }

    2. /admin/class-wptables-admin.php, at line 399, output BOM characters before exported data:

    echo chr(0xEF).chr(0xBB).chr(0xBF);
    echo $csv->export();
    • This topic was modified 6 years, 9 months ago by varpenny.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Ian Sadovy

    (@iansadovy)

    Hello @varpenny,

    Thank you for reporting and for providing a possible solution.
    I will review the code and include the fix in the next public update, so you will be able to update WPTables safely.

    Hope it works.

    Thanks,
    Ian

    Plugin Author Ian Sadovy

    (@iansadovy)

    Hello @varpenny,

    I have added a fix based on your suggestion in the latest version.
    You are welcome to update.
    Please let me know if it works well.

    Regards,
    Ian

    • This reply was modified 6 years, 9 months ago by Ian Sadovy.
    Thread Starter varpenny

    (@varpenny)

    Hi @iansadovy,

    Sorry for my late reply because of my holiday.

    I’ve updated the plugin to version 1.3.9, in which you resolved the problems that I mentioned.

    And now, I’m so happy to find that all is going well.

    Thanks,
    Penny

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error in Data Export from Mysql Query’ is closed to new replies.