﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-dazhi-最新评论</title><link>http://www.cppblog.com/dazhi/CommentsRSS.aspx</link><description /><language>zh-cn</language><pubDate>Sun, 30 Aug 2009 10:37:34 GMT</pubDate><lastBuildDate>Sun, 30 Aug 2009 10:37:34 GMT</lastBuildDate><generator>cnblogs</generator><item><title>re: c#文件流读取编码问题（转）</title><link>http://www.cppblog.com/dazhi/archive/2010/10/26/62836.html#131332</link><dc:creator>彭海涛</dc:creator><author>彭海涛</author><pubDate>Tue, 26 Oct 2010 07:15:00 GMT</pubDate><guid>http://www.cppblog.com/dazhi/archive/2010/10/26/62836.html#131332</guid><description><![CDATA[vs2008及以上版本可以使用微软提供的方法去获取：<br>根据所指定文件的字节顺序标记确定该文件的编码。<br>命名空间：  Microsoft.VisualStudio.TextTemplating<br>程序集：  Microsoft.VisualStudio.TextTemplating.10.0（在 Microsoft.VisualStudio.TextTemplating.10.0.dll 中）<br>语法<br>-----------------------------------------------------------------<br>public static Encoding GetEncoding(<br>	string filePath<br>)<br>参数<br>filePath<br>类型：System.String<br>要确定其编码的文件。<br><br>返回值<br>类型：System.Text.Encoding<br>一个 Encoding，其中包含编码信息。默认值为 Default，即系统的当前 ANSI 代码页。<br><br><img src ="http://www.cppblog.com/dazhi/aggbug/131332.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/dazhi/" target="_blank">彭海涛</a> 2010-10-26 15:15 <a href="http://www.cppblog.com/dazhi/archive/2010/10/26/62836.html#131332#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>