Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 ICSharpCode.SharpZipLib.dll 压缩我的软件文件。在文件路径中存在一些字符包含其他语言,如波斯语,压缩文件后,转向?character an 这会导致一些问题,因为路径中的非法字符。
C:\Program Files\my software\?.zip
现在我该如何解决?
将每个设置IsUnicodeText为 true ZipEntry:
IsUnicodeText
ZipEntry
var newEntry = new ZipEntry(entryName) { DateTime = DateTime.Now, Size = content.Length, IsUnicodeText = true };