diff --git a/src/DotnetSpider2.Core/Downloader/HttpClientDownloader.1.cs b/src/DotnetSpider2.Core/Downloader/HttpClientDownloader.1.cs index 336e969bb..2c4c8fdb4 100644 --- a/src/DotnetSpider2.Core/Downloader/HttpClientDownloader.1.cs +++ b/src/DotnetSpider2.Core/Downloader/HttpClientDownloader.1.cs @@ -266,7 +266,7 @@ private string GetContent(Site site, HttpResponseMessage response) contentBytes = PreventCutOff(contentBytes); if (string.IsNullOrEmpty(site.EncodingName)) { - Encoding htmlCharset = Encoding.Default; + Encoding htmlCharset = Encoding.GetEncoding("UTF-8"); return htmlCharset.GetString(contentBytes, 0, contentBytes.Length); } else diff --git a/src/DotnetSpider2.Core/project.json b/src/DotnetSpider2.Core/project.json index 0943fd81a..ae0e587dc 100644 --- a/src/DotnetSpider2.Core/project.json +++ b/src/DotnetSpider2.Core/project.json @@ -1,5 +1,5 @@ { - "version": "1.0.10-*", + "version": "1.0.11-*", "authors": [ "Lewis Zou", "Walterwhatwater", "xiaohuan0204" ], "description": "Offical package. DotnetSpider is a high performance, light weight cralwer developed by C#.", "packOptions": { diff --git a/src/DotnetSpider2.Demo/netfx45/DotnetSpider.Demo.csproj b/src/DotnetSpider2.Demo/netfx45/DotnetSpider.Demo.csproj index 13f32bc72..8ba10d8b0 100644 --- a/src/DotnetSpider2.Demo/netfx45/DotnetSpider.Demo.csproj +++ b/src/DotnetSpider2.Demo/netfx45/DotnetSpider.Demo.csproj @@ -141,6 +141,10 @@ {28dadca2-9053-4222-a813-a73dd0fe7f2f} DotnetSpider.Core + + {ddb5a085-6219-4a95-8cd8-ddcf3a54b962} + DotnetSpider.Extension +