Commit fb04baf9 authored by 罗显健's avatar 罗显健

SQL脚本执行工具解码格式设置为Default, 指定UTF-8后SQL客户端保存的中文都会乱码。

parent 638cd977
......@@ -74,12 +74,13 @@
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\SDammann.WebApi.Versioning-2.x\src\packages\Newtonsoft.Json.11.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
<HintPath>..\packages\Newtonsoft.Json.12.0.2\lib\net40\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="SoftUpdater.Core">
<HintPath>C:\GIT\UP2_Service\SoftUpdater.Core\bin\Debug\SoftUpdater.Core.dll</HintPath>
<Reference Include="SoftUpdater.Core, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\AppHome\SoftUpdater.Core.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
......
......@@ -381,7 +381,7 @@ namespace UpdateExecuter
List<string> lstSql = null;
if (!conDicFileScript.ContainsKey(file.FullName))
{
lstSql = Utils.SliceSingleFileScript(File.ReadAllText(file.FullName, System.Text.Encoding.UTF8)); // 更改为指定的编码格式 2022-04-23 09:04:24 lxj。
lstSql = Utils.SliceSingleFileScript(File.ReadAllText(file.FullName, System.Text.Encoding.Default));
conDicFileScript.TryAdd(file.FullName, lstSql);
}
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment