Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
Ftt_Common
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Ftt_Common
Commits
fb04baf9
Commit
fb04baf9
authored
Apr 23, 2022
by
罗显健
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SQL脚本执行工具解码格式设置为Default, 指定UTF-8后SQL客户端保存的中文都会乱码。
parent
638cd977
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
UpdateExecuter.csproj
UpdateExecuter/UpdateExecuter.csproj
+5
-4
frmMain.cs
UpdateExecuter/frmMain.cs
+1
-1
No files found.
UpdateExecuter/UpdateExecuter.csproj
View file @
fb04baf9
...
...
@@ -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"
/>
...
...
UpdateExecuter/frmMain.cs
View file @
fb04baf9
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment