Request for additional filter hook.
-
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.phpplace:
At line#70if ( '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.
The topic ‘Request for additional filter hook.’ is closed to new replies.