troubleshooting Question

character encoding of text in a html file

Avatar of mikha
mikhaFlag for United States of America asked on
ASP.NETC#* text encoding
1 Comment1 Solution122 ViewsLast Modified:
I am displaying content from different sources, such as database , web service call and so forth, in my website.
 There is no guarantee that the content  i get are in any particular character encoding, some may be in UTF-8 or UTF-16 or something else.

I am getting the content and displaying it as. can I change it to  a particular encoding before , I display it to my web page. at

I am setting the text content inside a div to whatever is returned from a web service call, in code behind page in website. I'm using C#.
Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros