diff --git a/SpotifyAPI/Local/RemoteHandler.cs b/SpotifyAPI/Local/RemoteHandler.cs index fa1eac03..95fd679a 100644 --- a/SpotifyAPI/Local/RemoteHandler.cs +++ b/SpotifyAPI/Local/RemoteHandler.cs @@ -51,8 +51,6 @@ namespace SpotifyAPI.Local return null; } response = response.Replace("\\n", ""); - byte[] bytes = Encoding.Default.GetBytes(response); - response = Encoding.UTF8.GetString(bytes); List raw = JsonConvert.DeserializeObject>(response); return raw[0]; } @@ -110,7 +108,10 @@ namespace SpotifyAPI.Local using (var wc = new ExtendedWebClient()) { if (SpotifyLocalAPI.IsSpotifyRunning()) + { + wc.Encoding = Encoding.UTF8; response = "[ " + wc.DownloadString(address) + " ]"; + } } } catch