26require_once DOL_DOCUMENT_ROOT.
'/core/modules/export/exportcsv.class.php';
46 $this->separator =
',';
52 $this->enclosure =
'"';
53 $this->
id =
'csvutf8';
54 $this->label =
'CSV UTF-8';
55 $this->desc = $langs->trans(
"CSVFormatDesc", $this->separator, $this->enclosure, $this->escape);
56 $this->extension =
'csv';
57 $this->picto =
'mime/other';
58 $this->version =
'1.32';
61 $this->label_lib =
'Dolibarr';
62 $this->version_lib = DOL_VERSION;
75 public function write_title($array_export_fields_label, $array_selected_sorted, $outputlangs, $array_types)
78 $conf->global->EXPORT_CSV_FORCE_CHARSET =
'UTF-8';
80 return parent::write_title($array_export_fields_label, $array_selected_sorted, $outputlangs, $array_types);
93 public function write_record($array_selected_sorted, $objp, $outputlangs, $array_types)
97 $conf->global->EXPORT_CSV_FORCE_CHARSET =
'UTF-8';
98 return parent::write_record($array_selected_sorted, $objp, $outputlangs, $array_types);
Class to build export files with format CSV.
Class to build export files with format CSV utf-8.
write_record($array_selected_sorted, $objp, $outputlangs, $array_types)
Output record line into file.
write_title($array_export_fields_label, $array_selected_sorted, $outputlangs, $array_types)
Output title line into file.
__construct($db)
Constructor.
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.