mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
fix<Launcher>: fix wrong text encoding while getting latest release version from Gitee.com
This commit is contained in:
parent
ed9c28055f
commit
6529d0565c
1 changed files with 2 additions and 1 deletions
|
@ -3,6 +3,7 @@ using System.Collections.ObjectModel;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
using System.Text;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using System.Windows;
|
using System.Windows;
|
||||||
|
@ -138,7 +139,7 @@ namespace SourceGit.UI {
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void CheckUpdate() {
|
public void CheckUpdate() {
|
||||||
try {
|
try {
|
||||||
var web = new WebClient();
|
var web = new WebClient() { Encoding = Encoding.UTF8 };
|
||||||
var raw = web.DownloadString("https://gitee.com/api/v5/repos/sourcegit/SourceGit/releases/latest");
|
var raw = web.DownloadString("https://gitee.com/api/v5/repos/sourcegit/SourceGit/releases/latest");
|
||||||
var ver = JsonConvert.DeserializeObject<Git.Version>(raw);
|
var ver = JsonConvert.DeserializeObject<Git.Version>(raw);
|
||||||
var cur = Assembly.GetExecutingAssembly().GetName().Version;
|
var cur = Assembly.GetExecutingAssembly().GetName().Version;
|
||||||
|
|
Loading…
Reference in a new issue