I\'m building a Windows Store app, but I\'m stuck at getting a UTF-8 response from an API.
This is the code:
using (HttpClient client = new HttpClien
Can't comment yet, so I'll have to add my thoughts here.
You could try to use _client.GetStringAsync(url) as @cremor suggested, and set your authentication headers using the _client.DefaultRequestHeaders property.
Alternatively, you could also try to use the ReadAsByteArrayAsync method on the response.Content object and use System.Text.Encoding to decode that byte array to a UTF-8 string.