DotNetZip trouble with coding

后端 未结 3 2035
猫巷女王i
猫巷女王i 2021-01-19 11:08

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. S

3条回答
  •  没有蜡笔的小新
    2021-01-19 11:24

    try this

    zip.AddEntry("yourfile.txt", "yourtext", Encoding.GetEncoding("utf-8"));
    

    encoding type : encoding type info

提交回复
热议问题