From f2fece28377ff32f19d81a0bcb4afe1cf3d72511 Mon Sep 17 00:00:00 2001 From: vain0 Date: Tue, 24 May 2016 21:14:25 +0900 Subject: [PATCH] Use utf-8 to download (Fixes #1699) This patch is written by @hafuu. --- src/Paket.Core/Utils.fs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Paket.Core/Utils.fs b/src/Paket.Core/Utils.fs index ad86c13902..52a9fa3fb8 100644 --- a/src/Paket.Core/Utils.fs +++ b/src/Paket.Core/Utils.fs @@ -341,6 +341,7 @@ let safeGetFromUrl (auth:Auth option, url : string, contentType : string) = if notNullOrEmpty contentType then client.Headers.Add(HttpRequestHeader.Accept, contentType) + client.Encoding <- Encoding.UTF8 let! raw = client.DownloadStringTaskAsync(uri) |> Async.AwaitTask return Some raw with _ -> return None