摘要: //如果文件有BOM则判断,如果没有就用系统默认编码,缺点:没有BOM的非系统编码文件会显示乱码。 //调用方法: EncodingType.GetType(filename) //来源:http://blog.csdn.net/listlofusage/archive/2007/02/10/1506900.aspx { public static System.Text.Encoding Get... 阅读全文
posted @ 2010-02-01 15:46 凌度 阅读(448) 评论(0) 推荐(0) 编辑