Skip to content

Commit 163ed9b

Browse files
author
Jonas Dellinger
committed
Merge branch 'master' of github.com:JohnnyCrazy/SpotifyAPI-NET
2 parents 451d925 + 04c1687 commit 163ed9b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎SpotifyAPI/Local/RemoteHandler.cs‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ internal StatusResponse GetNewStatus()
5656
return null;
5757
}
5858
response = response.Replace("\\n", "");
59-
byte[] bytes = Encoding.Default.GetBytes(response);
60-
response = Encoding.UTF8.GetString(bytes);
6159
List<StatusResponse> raw = JsonConvert.DeserializeObject<List<StatusResponse>>(response);
6260
return raw[0];
6361
}
@@ -115,7 +113,10 @@ internal string Query(string request, bool oauth, bool cfid, int wait)
115113
using (var wc = new ExtendedWebClient())
116114
{
117115
if (SpotifyLocalAPI.IsSpotifyRunning())
116+
{
117+
wc.Encoding = Encoding.UTF8;
118118
response = "[ " + wc.DownloadString(address) + " ]";
119+
}
119120
}
120121
}
121122
catch

0 commit comments

Comments
 (0)