diff --git a/Zip/Zip.swift b/Zip/Zip.swift index b326caad7569a6e7fa00cf8fd2387b516e555553..c4ada09fe6c889eb056cf7a8a644772a5f1cea95 100644 --- a/Zip/Zip.swift +++ b/Zip/Zip.swift @@ -230,7 +230,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) }