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
Janis Peksa
NA
152
50.8k
open file with utf-8
Apr 18 2011 5:42 AM
Hello, I have problem.
I have file with UTF-8 simbols in it.
I use some code to replace something.
And whan it saves the file utf-8 doesnt save.
It makes c ž š to ?
Can someone please help me.
I use this code:
StreamReader
reader =
new
StreamReader
(
"file.txt
"
);
string
content = reader.ReadToEnd();
reader.Close();
content =
StreamWriter
writer.Write(content);
writer.Close();
writer =
new
StreamWriter
(
"file.txt
"
);
Regex
.Replace(content,
";"
,
"|"
);
Reply
Answers (
3
)
Displaying data in gridview in c#
Gridview inside gridview Problem.