Answer the question
In order to leave comments, you need to log in
What could be the reason for this behavior of strings in C#?
Faced with an incomprehensible situation.
The code:
WebClient client = new WebClient();
string html = client.DownloadString("http://www.imdb.com/title/tt0452046/");
File.WriteAllText("index.html", html);
Answer the question
In order to leave comments, you need to log in
You put a text representation in some kind of encoding into the buffer, and write raw data to the file as it is. Least. There are only bytes and nothing but bytes that goes into your buffer - only the Studio knows.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question