From 2f5b07c87bd52fee5cc2ce30c7cccc8c097c03a2 Mon Sep 17 00:00:00 2001 From: Sunny Date: Fri, 5 Jan 2024 21:05:04 +0800 Subject: [PATCH] =?UTF-8?q?*=20IniConfig:=20=E5=A2=9E=E5=8A=A0=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E7=BC=96=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SunnyUI/Common/UIniConfig.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SunnyUI/Common/UIniConfig.cs b/SunnyUI/Common/UIniConfig.cs index e7256a89..1cf25973 100644 --- a/SunnyUI/Common/UIniConfig.cs +++ b/SunnyUI/Common/UIniConfig.cs @@ -185,7 +185,7 @@ namespace Sunny.UI DirEx.CreateDir(Path.GetDirectoryName(filename)); string filetmp = filename + "." + RandomEx.RandomPureChar(3); File.Delete(filetmp); - StreamWriter sw = new StreamWriter(filetmp); + StreamWriter sw = new StreamWriter(filetmp, false, IniEncoding); sw.WriteLine(strs.ToString()); sw.Flush(); sw.Close();