This should do it:
Encoding wind1252 = Encoding.GetEncoding(1252);
Encoding utf8 = Encoding.UTF8;
byte[] wind1252Bytes = wind1252.GetBytes(strHtml);
byte[] utf8Bytes = Encoding.Convert(wind1252, utf8, wind1252Bytes);
string utf8String = Encoding.UTF8.GetString(utf8Bytes);
Related Contents:
- Reach control from another page. ASP.Net
- How to get a user’s client IP address in ASP.NET?
- How to write a simple Html.DropDownListFor()?
- Problem with converting int to string in Linq to entities
- What is the purpose of a question mark after a type (for example: int? myVariable)?
- Authenticate and request a user’s timeline with Twitter API 1.1 oAuth
- Lifetime of ASP.NET Static Variable
- How to set session timeout in web.config
- Finding all positions of substring in a larger string in C#
- Unable to update the EntitySet – because it has a DefiningQuery and no element exist
- Dynamically change connection string in Asp.Net Core
- OnclientClick and OnClick is not working at the same time?
- Why is HttpContext.Current null after await?
- How to implement real time data for a web page
- Advantages of Cache vs Session
- How to get the groups of a user in Active Directory? (c#, asp.net)
- prevent property from being serialized in web API
- Where does error CS0433 “Type ‘X’ already exists in both A.dll and B.dll ” come from?
- Alternatives to System.Drawing for use with ASP.NET?
- How to return PDF to browser in MVC?
- Mobile Device Detection in asp.net
- DropdownList DataSource
- What’s better: DataSet or DataReader?
- What’s the difference between the WebConfigurationManager and the ConfigurationManager?
- Async Void, ASP.Net, and Count of Outstanding Operations
- Accessing Office Word object model through asp.net results in “failed due to the following error: 80070005 Access is denied.”
- How to not serialize the __type property on JSON objects
- How can I trigger/refresh my main .RAZOR page from all of its sub-components within that main .RAZOR page when an API call is complete?
- The result of a query cannot be enumerated more than once
- Cannot deserialize the current JSON array (e.g. [1,2,3]) into type
- How do I route images using ASP.Net MVC routing?
- An error occurred during report processing. -RLDC reporting in ASP.NET MVC
- Setting the default value of a DateTime Property to DateTime.Now inside the System.ComponentModel Default Value Attrbute
- Create thumbnail image
- asp.net Button OnClick event not firing
- Read from word document line by line
- How DataReader works?
- Reading FromUri and FromBody at the same time
- ASP.NET Session size limitation
- Images in dropdown list
- How to use C# 6 with Web Site project type?
- Do I have to Close() a SQLConnection before it gets disposed?
- What does N’ stands for in a SQL script ? (the one used before characters in insert script)
- Determine OS using Environment.OSVersion [duplicate]
- Recursive TreeView in ASP.NET
- Download file from FTP and how prompt user to save/open file in ASP.NET C#
- MvcSiteMap generating a Menu without messing the breadcumbs
- ASP.NET Custom 404 Returning 200 OK Instead of 404 Not Found
- Javascript serialization of DateTime in asp.net is not giving a javascript date object?
- How to return a PDF from a Web API application