hello guys,

i'm creating a pdf document and have the base64 string. i decode the string to a binary string and save the document with the ion writefile function but on saving it will change mutation letters like Ä, Ö, Ü (würzburg).

But when i copy the binary string from the console and past it into a file it will not change.

Code:
var byteString = atob(pdf.getBase64Text());                            
console.log(byteString);
Ion.io.writeFile(Ion.io.tempPath + 'test.pdf', byteString);
                            
Ion.util.openUrl('file:' + Ion.io.tempPath + 'test.pdf');
kind regards
malfurion