From a03660f4d8fab3a90977e65083936a1fc538d447 Mon Sep 17 00:00:00 2001 From: xiang Date: Tue, 12 Nov 2024 21:56:06 +0800 Subject: [PATCH] update --- Video.xaml.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Video.xaml.cs b/Video.xaml.cs index 16e5e44..5b12e03 100644 --- a/Video.xaml.cs +++ b/Video.xaml.cs @@ -107,7 +107,7 @@ namespace VideoConcat try { int k = 1; - for (int i = 1; i < 100; i++) + for (int i = 100; i >0; i--) { var folder = string.Format("{0:D2}", i); @@ -162,16 +162,19 @@ namespace VideoConcat //int i = 0; //string vao = ""; List ooootext = []; - + files.Reverse(); files.ForEach(file => { + //#file = System.Web.HttpUtility.UrlEncode(file); ooootext.Add($"file '{file}'"); }); var random = new Random(); string tmpConcatFile = $"{outPut}\\{Guid.NewGuid()}{random.Next(100000, 999999)}.aaa"; // 也可以指定编码方式 - File.WriteAllLines(tmpConcatFile, ooootext, Encoding.ASCII); + //File.WriteAllLines(tmpConcatFile, ooootext, Encoding.UTF8); + + File.WriteAllText(tmpConcatFile, string.Join("\n", [.. ooootext]), new System.Text.UTF8Encoding(false));