This commit is contained in:
greeneclipse committed 2026-10-20 17:03:09 +02:00
1 parent 486502852e
commit 0e48ea427b
23 files changed
+386 -78

No files matched your search

+5
View File
@@ -874,6 +874,11 @@ func writeXMLProduct(w io.Writer, item string, tpl exportTemplate, p exportProdu
}
func streamCSV(w io.Writer, seq exportProductSeq, tpl exportTemplate) (int, error) {
// UTF-8 BOM makes Excel detect Unicode without its locale-dependent CSV import.
// The BOM is emitted once per file and does not change the exported field data.
if _, err := io.WriteString(w, "\ufeff"); err != nil {
return 0, err
}
cw := csv.NewWriter(w)
headers := make([]string, len(tpl.Fields))
for i, f := range tpl.Fields {