TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
snorresturlasson
NA
5
0
Strange charaters when outputting to html file
Dec 10 2003 4:53 PM
Hi all! I've written a C# program that fetches data from a couple of webpages, merges it and writes it onto a new html file. My only problem is that the swedish charaters å, ä and ö that are part of the pages get corrupted when viewing my new html page in Internet Explorer. For example ä becomes 'ã?'. The funny thing is that if I open my html page in Notepad and then saves the page without editing and then open it in Internet Explorer again, the charaters look fine! I guess I'm doing something wrong when I write the file. This is a shortend version of my code: TextWriter tw = new StreamWriter("C:\\mypage.html"); tw.WriteLine("My text here with strange characters"); tw.Close(); Can anyone help me? /Snorre
Reply
Answers (
3
)
mdi application
truncating floating point decimals