Add BOM for excel
This commit is contained in:
parent
13d7be2422
commit
5c2a69c668
|
@ -101,7 +101,7 @@ abstract class WC_CSV_Batch_Exporter extends WC_CSV_Exporter {
|
||||||
|
|
||||||
// Add columns when finished.
|
// Add columns when finished.
|
||||||
if ( 100 === $this->get_percent_complete() ) {
|
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;
|
$file .= $data;
|
||||||
|
|
|
@ -147,7 +147,7 @@ abstract class WC_CSV_Exporter {
|
||||||
public function export() {
|
public function export() {
|
||||||
$this->prepare_data_to_export();
|
$this->prepare_data_to_export();
|
||||||
$this->send_headers();
|
$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();
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue