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();