• Hi.
    I am using this plugin in Japanese language environment that has the multibyte characters (Kanji, Hira-gana, Kata-kana) and be facing issue below.

    Issue:
    When open the exported csv file by double crick with MS excel, that multibyte characters will be displayed uncorrectly.

    So I’d like to request additional filter hook to add BOM(Byte order mark) data to csv to avoid issue.

    File:
    \simple-history\dropins\SimpleHistoryExportDropin.php

    place:
    At line#70

    
    if ( 'csv' == $export_format ) {
      /*
      * I want a new filter hook here to add BOM data to file. For example below.
      */
      $fp = apply_filters('simple_history/add_bom_data', $fp);
      $filename = 'simple-history-export-' . time() . '.csv';
      header( 'Content-Type: text/plain' );
      header( "Content-Disposition: attachment; filename='{$filename}'" );
    }
    

    Thanks.

    • This topic was modified 8 years, 3 months ago by zeppeki.
    • This topic was modified 8 years, 3 months ago by zeppeki.
    • This topic was modified 8 years, 3 months ago by zeppeki.
    • This topic was modified 8 years, 3 months ago by zeppeki.

The topic ‘Request for additional filter hook.’ is closed to new replies.