Use windows-1252 encoding

This commit is contained in:
Vincent Vandemeulebrouck 2024-09-28 17:44:28 +02:00
parent 9c17f85fa8
commit 74b184aa32

View File

@ -50,12 +50,12 @@ export class ExportScriptarium {
} }
exportActors(actors, targetName) { exportActors(actors, targetName) {
const eol = '\n' const eol = '\n\r'
const header = Misc.join(this.getHeaderLine(), ';') const header = Misc.join(this.getHeaderLine(), ';')
const actorLines = actors.map(actor => Misc.join(this.getActorLine(actor), ';')) const actorLines = actors.map(actor => Misc.join(this.getActorLine(actor), ';'))
const data = Misc.join([header, ...actorLines], eol) const data = Misc.join([header, ...actorLines], eol)
const filename = `scriptarium-${targetName?.slugify()}.csv`; const filename = `scriptarium-${targetName?.slugify()}.csv`;
saveDataToFile(data, "text/csv;charset=utf-8", `${filename}`); saveDataToFile(data, "text/csv;charset=windows-1252", `${filename}`);
} }
getHeaderLine() { getHeaderLine() {