I have problem with Zippex encoding. When I create archive with file name 'Check Flät', the name changes to strange symbols.
Code that create attachment:
Zippex sampleZip = new Zippex();
Blob fileData = Blob.valueOf('Sample text.');
sampleZip.addFile('layouts/Check Flät.layout', fileData, null);
Attachment attachment = new Attachment();
attachment.Name = 'Check Flät';
attachment.ContentType = 'application/zip;charset=UTF-8;';
attachment.Body = sampleZip.getZipArchive();
attachment.Description = 'Layout';
attachment.ParentId = 'a072h000002jr3oAAA';
insert attachment;
What I am getting in archive:
Check Fl├дt.layout
But I want to get Check Flät.layout in name of the File.