From 8c39f9d38a40f32db42ff152a75e46c80f6878ac Mon Sep 17 00:00:00 2001 From: liufei Date: Wed, 21 Jul 2021 10:06:02 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.config | 2 +- Control/Windows/ToDoWindow.xaml | 2 +- Control/Windows/UpdateWindow.xaml | 2 +- Update.json | 2 +- Util/HttpUtil.cs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/App.config b/App.config index 0da5351..2d4d451 100644 --- a/App.config +++ b/App.config @@ -12,7 +12,7 @@ - + diff --git a/Control/Windows/ToDoWindow.xaml b/Control/Windows/ToDoWindow.xaml index 3152974..99dc6e6 100644 --- a/Control/Windows/ToDoWindow.xaml +++ b/Control/Windows/ToDoWindow.xaml @@ -29,7 +29,7 @@ - + diff --git a/Control/Windows/UpdateWindow.xaml b/Control/Windows/UpdateWindow.xaml index 975f8f2..17579cd 100644 --- a/Control/Windows/UpdateWindow.xaml +++ b/Control/Windows/UpdateWindow.xaml @@ -10,7 +10,7 @@ WindowStyle="None" AllowsTransparency="True" Background="Transparent" ShowInTaskbar="False"> - + diff --git a/Update.json b/Update.json index cf7877e..5e83774 100644 --- a/Update.json +++ b/Update.json @@ -2,7 +2,7 @@ "title" : "汾", "subTitle" : "V1.0-beta", "msgTitle" : "θ", - "msg" : "[²],[²2]", + "msg" : "['²1','²2']", "githubUrl" : "https://github.com/Demo-Liu/GeekDesk/releases/tag/1.0-beta", "giteeUrl" : "https://gitee.com/demo_liu/GeekDesk/releases/1.0-beta", "version": "1.0-beta" diff --git a/Util/HttpUtil.cs b/Util/HttpUtil.cs index 9a96fa2..ccfaf04 100644 --- a/Util/HttpUtil.cs +++ b/Util/HttpUtil.cs @@ -20,7 +20,7 @@ namespace GeekDesk.Util //通过Web访问对象获取响应内容 HttpWebResponse myResponse = (HttpWebResponse)myRequest.GetResponse(); //通过响应内容流创建StreamReader对象,因为StreamReader更高级更快 - StreamReader reader = new StreamReader(myResponse.GetResponseStream(), Encoding.UTF8); + StreamReader reader = new StreamReader(myResponse.GetResponseStream(), Encoding.GetEncoding("gbk")); string returnStr = reader.ReadToEnd();//利用StreamReader就可以从响应内容从头读到尾 reader.Close(); myResponse.Close();