Added charset header and BOM to utf-8 csv exports
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
<?php
|
||||
ob_end_flush();
|
||||
header("Content-type: text/csv");
|
||||
header("Content-type: text/csv; charset=utf-8");
|
||||
header('Content-disposition: attachment; filename="ivtproducts-active-'.date('Y-m-d_H-i-s').'.csv"');
|
||||
?>
|
||||
IVT ID;Typ;Produkt;Standardpreis;Anzahl Kunden;Kunde
|
||||
<?="\u{FEFF}"?>IVT ID;Typ;Produkt;Standardpreis;Anzahl Kunden;Kunde
|
||||
<?php
|
||||
$types = array('-----', 'xDSL', 'FTTH', 'FTTB', 'DOCSIS', 'Funk', 'Telefon', 'Webhosting', 'Carrier', 'Housing', 'TV');
|
||||
foreach($products as $product_id => $product):
|
||||
|
||||
Reference in New Issue
Block a user