Question Textbox langaue

TMTakas

Member
Joined
Feb 6, 2013
Messages
15
Programming Experience
Beginner
Hi vbdotnetforums

i want to get a text from webbrowser, the page is in arabic, i have this code :

VB.NET:
        WebBrowser1.Navigate("xxx.com/vb/xxx.php")


        While WebBrowser1.ReadyState <> WebBrowserReadyState.Complete
            Application.DoEvents()
        End While


        TextBox1.Text = WebBrowser1.DocumentText

And The problem is that the all webpages in arabic seems like this ???? :

0f6a1c4660.png



And Thx :D
 
JohnH thx for your replay but i donr want to use streamReader, what i need is : Get webbrowser document and display into a text box :)
 
You need to use the StreamReader to read the text with correct encoding, use its ReadToEnd method to read the entire text. That is what DocumentText property does, but it only uses Utf8 encoding.
 
Back
Top