From 7a25d94b959a0017a9dc771e77a440f87a6f3e3d Mon Sep 17 00:00:00 2001 From: kaso17 Date: Wed, 11 Jan 2017 14:48:50 +0100 Subject: [PATCH] Set encoding for omdbapi calls --- src/Jackett/Controllers/PotatoController.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Jackett/Controllers/PotatoController.cs b/src/Jackett/Controllers/PotatoController.cs index 83a858d3f..3df5b059e 100644 --- a/src/Jackett/Controllers/PotatoController.cs +++ b/src/Jackett/Controllers/PotatoController.cs @@ -83,7 +83,9 @@ namespace Jackett.Controllers if (string.IsNullOrWhiteSpace(request.search)) { // We are searching by IMDB id so look up the name - var response = await webClient.GetString(new Utils.Clients.WebRequest("http://www.omdbapi.com/?type=movie&i=" + request.imdbid)); + var omdbapiRequest = new Utils.Clients.WebRequest("http://www.omdbapi.com/?type=movie&i=" + request.imdbid); + omdbapiRequest.Encoding = Encoding.UTF8; + var response = await webClient.GetString(omdbapiRequest); if (response.Status == HttpStatusCode.OK) { JObject result = JObject.Parse(response.Content);