-
November 10th, 2011, 04:45 PM
#1
reading in HTML pages with unicode and ANSI
I'm reading in the HTML pages and taking some texts out of each one. I'm adding those texts to the RichTextBox and displaying them. I have done
string text = System.IO.File.ReadAllText(filename, Encoding.Default); // reads items like á
but it changes the Unicode glyphs to something unrecognizable. Also, I have done
and
string text = System.IO.File.ReadAllText(filename, Encoding.UTF8); // reads items like ɨ
but it changes the ANSI characters to a black diamond with a white question mark inside.
I need Unicode and ANSI in each HTML page. Is that possible? If I can ask, how would you do it?
Thanks.
Scott
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|