static void Main(string[] args) { StreamReader m_StreamReader = new StreamReader(" your input file path "); string str = m_StreamReader.ReadToEnd(); File.WriteAllText(" your output file path", str, Encoding.GetEncoding("utf-16"));// the encoding you want }
转载于:https://www.cnblogs.com/VincentDao/p/3223064.html