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

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

parent 638cd977
...@@ -74,12 +74,13 @@ ...@@ -74,12 +74,13 @@
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <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> <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>
<Reference Include="SoftUpdater.Core"> <Reference Include="SoftUpdater.Core, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>C:\GIT\UP2_Service\SoftUpdater.Core\bin\Debug\SoftUpdater.Core.dll</HintPath> <SpecificVersion>False</SpecificVersion>
<HintPath>..\AppHome\SoftUpdater.Core.dll</HintPath>
</Reference> </Reference>
<Reference Include="System" /> <Reference Include="System" />
<Reference Include="System.Core" /> <Reference Include="System.Core" />
......
...@@ -381,7 +381,7 @@ namespace UpdateExecuter ...@@ -381,7 +381,7 @@ namespace UpdateExecuter
List<string> lstSql = null; List<string> lstSql = null;
if (!conDicFileScript.ContainsKey(file.FullName)) 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); conDicFileScript.TryAdd(file.FullName, lstSql);
} }
else 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