I'm using a script for saving and storing the Alarm Journal to a file. The alarm journal contains the Norwegian letters æ, ø and å. I'm using the system.perspective.download-function to save the file, but I'm not able to force it to store these characters in the file.
The system.perspective.print-function prints these characters fine in the Output Console, so my guess is that the problem is in the system.perspective.download-function. I've tried both the system.dataset.toCSV and .toExcel-conversions before downloading the file. I have also opened both types of files in both Excel and in Notepad++ without any luck.
I've also experimented with the contentType in the download function, but also here without success.
Segment from script:
dataz = system.dataset.toDataSet(header,table)
csvData = system.dataset.toCSV(dataset=dataz)
system.perspective.print(csvData)
system.perspective.download(filename="Label.xls", data=csvData, contentType="text/plain; charset=utf-8")
I'm surely not the first one experiencing this, so I'm wondering if there are anyone out there who can point me in the correct direction?