Reputation: 71
I am using a WebBrowser
control in my project. My code example is below:
webBrowser1.Navigate("Web Site goes here");
The web browser is navigating the Google website, however I can not see the Turkish characters.
Therefore I use:
webBrowser1.Document.Encoding = "UTF-8"
However the problem still continues. Any idea to solve this?
Upvotes: 2
Views: 12058
Reputation: 323
StreamReader sr = new StreamReader(this.webBrowser1.DocumentStream, Encoding.GetEncoding("UTF-8"));
string source = sr.ReadToEnd();
or you can try "iso-8859-9" for encoding. this should do it.
Upvotes: 4