Skip to content

Instantly share code, notes, and snippets.

@hafuu
Created May 24, 2016 12:04
Show Gist options
  • Save hafuu/1e6cf81c0d08636ee86b5d0de3c55bb4 to your computer and use it in GitHub Desktop.
Save hafuu/1e6cf81c0d08636ee86b5d0de3c55bb4 to your computer and use it in GitHub Desktop.
> System.Text.Encoding.Default.WebName;;
val it : string = "shift_jis"
diff --git a/src/Paket.Core/Utils.fs b/src/Paket.Core/Utils.fs
index ad86c13..4188c10 100644
--- a/src/Paket.Core/Utils.fs
+++ b/src/Paket.Core/Utils.fs
@@ -340,7 +340,7 @@ open System.Collections.Generic
if notNullOrEmpty contentType then
client.Headers.Add(HttpRequestHeader.Accept, contentType)
-
+ do client.Encoding <- Encoding.UTF8
let! raw = client.DownloadStringTaskAsync(uri) |> Async.AwaitTask
return Some raw
with _ -> return None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment