Richard Schneider is right. use the code below to retrieve data from a site that is not utf8 encoded, will receive the wrong string.
using (Stream stream = response.GetResponseStream()) { StreamReader reader = new StreamReader(stream, Encoding.UTF8); String responseString = reader.ReadToEnd(); }
"I canβt vote. So wrote it.
Howard Lou Aug 27 '16 at 4:53 on 2016-08-27 04:53
source share