Encoding used for entry names and comments
NOTE: this is culture-dependent, which is a really bad idea, but most zip packers
use the default OEM code page to encode file names, so we have to go along with it...
Note that Encoding.Default seems like a logical choice but doesn't really work for
international locales. Instead, we need to create an encoding using the current
OEMCodePage. That allows accents and international characters to be used in file
names (like the zip built into Windows, allows names such as "Åland.txt", "Äiti.txt",
"Würth.txt", etc.).
This has nothing to do with compression, it's just used to encode and decode entry
names and comments.
Namespace:
C1.C1ZipAssembly: C1.Silverlight.Zip (in C1.Silverlight.Zip.dll)
Syntax
C# |
---|
public class ZipEncoding |
Visual Basic |
---|
Public Class ZipEncoding |