From 76aa4b705671e406607ea3ddaca2566df2e2e7ad Mon Sep 17 00:00:00 2001 From: Colin Finck Date: Thu, 30 Nov 2023 16:33:47 +0100 Subject: [PATCH] Write a Byte Order Mark (BOM) to the CSV file. This indicates UTF-8 and thereby fixes special characters when opening the resulting CSV in Excel. To my knowledge, it has no negative effects in any application that works with CSV files. Fixes #4 --- src/csv_exporter.cpp | 11 +++++++++-- src/version.h | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/csv_exporter.cpp b/src/csv_exporter.cpp index 6c07ad8..c441431 100644 --- a/src/csv_exporter.cpp +++ b/src/csv_exporter.cpp @@ -60,11 +60,18 @@ ExportCSV(const std::wstring& wstrCSVFilePath, const std::vector