I am consuming a REST service that is returning the following message with special characters:
"Animated T & amp; Spaces"
Is it possible to handle this message?
I am consuming a REST service that is returning the following message with special characters:
"Animated T & amp; Spaces"
Is it possible to handle this message?
You can work with Encoding, make sure it solves your problem:
var buffer = await response.Content.ReadAsBufferAsync();
var byteArray = buffer.ToArray();
var responseString = Encoding.UTF8.GetString(byteArray, 0, byteArray.Length);