From 74b184aa3223f14b789e664d0d150949fc6efb87 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Sat, 28 Sep 2024 17:44:28 +0200 Subject: [PATCH] Use windows-1252 encoding --- module/actor/export-scriptarium/export-scriptarium.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/actor/export-scriptarium/export-scriptarium.js b/module/actor/export-scriptarium/export-scriptarium.js index 2e048865..42710c70 100644 --- a/module/actor/export-scriptarium/export-scriptarium.js +++ b/module/actor/export-scriptarium/export-scriptarium.js @@ -50,12 +50,12 @@ export class ExportScriptarium { } exportActors(actors, targetName) { - const eol = '\n' + const eol = '\n\r' const header = Misc.join(this.getHeaderLine(), ';') const actorLines = actors.map(actor => Misc.join(this.getActorLine(actor), ';')) const data = Misc.join([header, ...actorLines], eol) const filename = `scriptarium-${targetName?.slugify()}.csv`; - saveDataToFile(data, "text/csv;charset=utf-8", `${filename}`); + saveDataToFile(data, "text/csv;charset=windows-1252", `${filename}`); } getHeaderLine() {