diff --git a/Zip/Zip.swift b/Zip/Zip.swift index be47265a5cd26cee8ebb055ceadb9dbe35b063ed..0616484a7d361d0718b4bccf66c3b021f80e5df8 100644 --- a/Zip/Zip.swift +++ b/Zip/Zip.swift @@ -244,7 +244,8 @@ public class Zip { } if let fileHandler = fileOutputHandler, - let fileUrl = URL(string: fullPath) { + let encodedString = fullPath.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed), + let fileUrl = URL(string: encodedString) { fileHandler(fileUrl) }