Add BOM for excel

This commit is contained in:
Mike Jolley 2017-06-23 17:19:50 +01:00
parent 13d7be2422
commit 5c2a69c668
2 changed files with 2 additions and 2 deletions

View File

@ -101,7 +101,7 @@ abstract class WC_CSV_Batch_Exporter extends WC_CSV_Exporter {
// Add columns when finished.
if ( 100 === $this->get_percent_complete() ) {
$file = $this->export_column_headers() . $file;
$file = chr( 239 ) . chr( 187 ) . chr( 191 ) . $this->export_column_headers() . $file;
}
$file .= $data;

View File

@ -147,7 +147,7 @@ abstract class WC_CSV_Exporter {
public function export() {
$this->prepare_data_to_export();
$this->send_headers();
$this->send_content( $this->export_column_headers() . $this->get_csv_data() );
$this->send_content( chr( 239 ) . chr( 187 ) . chr( 191 ) . $this->export_column_headers() . $this->get_csv_data() );
die();
}