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 }