* IniConfig: 增加文件编码
This commit is contained in:
parent
00c6424e58
commit
2f5b07c87b
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user