Hi,
I need to create a zip file of a directory which contains some directories and some files use unicode chars.
CreateZip is a good starting point because it can be recursive, but i don't know how to use this method with the IsUnicodeText property.
For doing some tests, I have make the following code :
foreach (EncodingInfo enc in Encoding.GetEncodings())
{
FastZip zip = new FastZip();
zip.UseZip64 =
UseZip64.Off;ZipConstants.DefaultCodePage = enc.CodePage; zip.CreateZip(@"C:\Temp\" + enc.CodePage + ".zip", pathToZip, true, "");
}
This one has generated 140 zip files, but none of them had the correct chars (chinese).
So I really need a recursive method that use IsUnicodeText for folder and file names.
Thanks.