Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DotNetZip trouble with coding

Tags:

c#

.net

dotnetzip

I am using DotNetZip. When i am archiving file which have english name all normally. but when i archiving file with russian names in result archive with bad names of file. Some peoplese said that string

ZipConstants.DefaultCodePage = 866;

But it not compile. I also use zip.UseUnicodeAsNecessary properties, and convert my file names to utf8 and utf7.

like image 222
Xaver Avatar asked Nov 27 '22 10:11

Xaver


1 Answers

zip.AlternateEncodingUsage = ZipOption.Always;
zip.AlternateEncoding = Encoding.UTF8;
like image 112
prime23 Avatar answered Dec 24 '22 15:12

prime23