压缩算法库
1 SharpZipLib
找到“ZipConstants.cs”修改
public static string ConvertToString(byte[] data)
{
return Encoding.GetEncoding("gb2312").GetString(data, 0, data.Length);
//return Encoding.ASCII.GetString(data,0, data.Length);
}
public static byte[] ConvertToArray(string str)
{
return Encoding.GetEncoding("gb2312").GetBytes(str);
//return Encoding.ASCII.GetBytes(str);
}
如此就可支持中文名称了
欢迎C#或Winform技术交流,C#交流群:83868794