We will be facing issues with WebBrowser control in C#.net for handling symbols such as Ø,½ and ±. We may face issues even when we set appropriate character encoding for the webbrowser control. It seems documenttext property is not handling symbols properly. To overcome this issue, we can get the header and body details separately instead of using documenttext.
The code can be written as below,
string strhead = webBrowser1.Document.GetElementsByTagName("head")[0].OuterHtml;
string strbody = webBrowser1.Document.Body.OuterHtml;
string strhtml = strhead + strbody;
More Articles...
Search This Blog
Blog Archive
-
▼
2009
(257)
-
▼
February
(13)
- PHP - Enable cURL in Windows.
- Excel - Removing duplicate values
- Javascript- Accessing DOM before completion of pag...
- C# - Handling symbols in webbrowser control
- Cross browser web development.
- Online Bookmark
- MySql version issue.
- MySQL - Importing Large sql file
- Bookmarklet
- Our vision and Values
- Google Analytics
- Offline Crawling - Resolved the issue with webbrow...
- Issue with GD Library
-
▼
February
(13)

AI Course | Bundle Offer | Unlocking AI | Dream Big | Listen to Dream Big
Today's Deals | Timesheet | Products | SQL ebook | Earn 50% commission
About | Privacy | Follow | TOS | WhatsApp | Contact
I may earn a commission from Amazon affiliate links
No comments:
Post a Comment