登录
首页 » C# » C# 文件编码转换工具(支持UTF-8/UTF-7/Unicode/ASCII/GB2312(简体中文)/BIG5 (繁体中文)等编码转换 )

C# 文件编码转换工具(支持UTF-8/UTF-7/Unicode/ASCII/GB2312(简体中文)/BIG5 (繁体中文)等编码转换 )

于 2019-06-28 发布
0 232
下载积分: 1 下载次数: 1

代码说明:

文件编码转换工具,批量转换文件到UTF8,支持自识别原格式,支持备份。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 压缩示例(rar、zip、7zip、Gzip、tar...等)
    本程序是基于 sharpcompress-master 设计的演示程序。开原地址:https://github.com/adamhathcock/sharpcompress。1. 程序主要展示了压缩文件的解压缩,支持的文件类型有:rar、zip、7zip、Gzip、tar......等压缩格式,展示了密码解压、分卷解压、解压进度等功能。2. 不支持“带密码的分卷压缩文件”的解压;无密码分卷压缩、单个带密码文件正常解压。3. 此程序在设计中,对组件源代码进行了修改,与原组件代码对照查看。4、sharpcompress-master组件功能繁多,比如,文件压缩为图片、压缩文件内文件添加删除、更名等等,对照现有的压缩软件,功能均具备,可在代码中查看使用。本示例只是展示了解压缩功能。此程序为识别全部压缩格式,未引用DLL,全部为cs文件,如有错误,自行对照修正。private void Uncompress(string archiveFile, string destinationPath, string password = null) { var archive = ArchiveFactory.Open(archiveFile, new ReaderOptions() { Password = password, LeaveStreamOpen = true }); volumes = archive.Entries.Count(); archive.EntryExtractionBegin = archive_EntryExtractionBegin; archive.FilePartExtractionBegin = archive_FilePartExtractionBegin; archive.CompressedBytesRead = archive_CompressedBytesRead; Task.Run(() => { long order = 0; foreach (var entry in archive.Entries) { if (!entry.IsDirectory) { entry.WriteToDirectory(destinationPath, new ExtractionOptions() { ExtractFullPath = true, Overwrite = true, }); } order ; this.CrossThreadCalls(() => { if (volumes > 1) { progress[0].Value = CreatePercentage(order, volumes); } }); } MessageBox.Show("解压缩任务完成 !"); }); } private void archive_EntryExtractionBegin(object sender, ArchiveExtractionEventArgs e) { entryTotal = e.Item.Size; info_builde1 = "提取文件: " e.Item.Key ";"; } private void archive_FilePartExtractionBegin(object sender, FilePartExtractionBeginEventArgs e) { partTotal = e.Size; info_builde2 = "分卷:" e.Name ";"; } private void archive_CompressedBytesRead(object sender, CompressedBytesReadEventArgs e) { string percentage = entryTotal.HasValue ? CreatePercentage(e.CompressedBytesRead, entryTotal.Value).ToString() : "Unknown"; info_builde = info_builde1 info_builde2 "字节:" e.CompressedBytesRead ";百分比:" percentage "%"; this.CrossThreadCalls(() => { compress_Info.Text = info_builde; progress[1].Value = int.Parse(percentage) > 100 || int.Parse(percentage) < 0 ? 100 : int.Parse(percentage); if (volumes < 2) progress[0].Value = progress[1].Value; Application.DoEvents(); }); } private int CreatePercentage(long n, long d) { return (int)(((double)n / (double)d) * 100); }
    2019-07-21下载
    积分:1
  • MVC EF开发的留言板实例源码下载
    MVC基于EF开发的留言板
    2015-01-27下载
    积分:1
  • 遍历夹、批量提取txt 中的关键内容
    批量提取txt 文件中的关键内容,并生成保存到txt文件中:一个关键字的值再多个文件中都存在,需要按照关键字提取所以的文件中的值,并按照关键字保存值。适合初学者学历遍历文件夹、文件、提取文件内容
    2018-11-12下载
    积分:1
  • c# MD5码 比较,检测是否一样(附源码)
    c# 文件MD5码 比较,检测文件是否一样(附源码)
    2014-01-12下载
    积分:1
  • 西门子PLC s-1200、s-1500通讯
    VB、C#等PC高级语言与西门子PLC(S7-200Smart、S7-1200、S7-1500、S7-300、S7-400等)以太网、串口通讯
    2020-04-24下载
    积分:1
  • S19与Hex
    S19文件与HEX文件解析
    2021-05-06下载
    积分:1
  • C# 编码转换工具(支持UTF-8/UTF-7/Unicode/ASCII/GB2312(简体中)/BIG5 (繁体中)等编码转换 )
    文件编码转换工具,批量转换文件到UTF8,支持自识别原格式,支持备份。
    2019-06-28下载
    积分:1
  • c# 压缩与压缩实例源码下载(可设置密码 加密压缩)
    可加密压缩,选择压缩文件 并设置压缩路径
    2015-03-14下载
    积分:1
  • C#基于Surfer开发等值线图
    主要应用与气象,地理有关的系统,基于Surfer8开发的做等值线图程序
    2013-06-19下载
    积分:1
  • C# 读写excel表 例子源码下载
    C# 读写excel表 例子源码下载
    2014-11-04下载
    积分:1
  • 696524资源总数
  • 103939会员总数
  • 12今日下载