ox0spy's blog
Stay hungry, stay foolish
Pages
Home
About
Project
Oct 21, 2008
C# 读取gb2312文本文件
StreamReader objReader
=
new
StreamReader(strFilename,System.Text.Encoding.GetEncoding(
"
gb2312
"
));
如果不加第二个参数,读出来的中文是乱码
No comments:
Post a Comment
您的评论将使我blog更有动力~
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
您的评论将使我blog更有动力~