2022年俄罗斯语学习初中教科书期 .pdf
Stream.Seek(origPos,SeekOrigin.Begin);targetEncoding;gb2312 UTF7 ,.,gb2312 UTF7 txt ,.,new,.;Farproc.Text;system.io;ConsoleApplication1 /Class1./Class1 名师资料总结-精品资料欢迎下载-名师精心整理-第 1 页,共 5 页 -/./STAThread (string )/TODO:/e:a.txt=;/big endian Streamwriter SW=new streamwriter(,false,Encoding.BigEndianUnicode);/,Encoding.GetEncoding(gb2312)utf8 Sw.Write();Sw.Close();/fileEncoding=TxtFileEncoding.GetEncoding(,Encoding.GetEncoding(gb2312);/txt (.Writeline :+fileEncoding.EncodingName);名师资料总结-精品资料欢迎下载-名师精心整理-第 2 页,共 5 页 -Streamreader sr=new streamreader(,fileEncoding);/streamreader /,(UTF-8)/sr.CurrentEncoding /StreamReader sr=new streamreader(,);/Console.WriteLine(:+sr.CurrentEncoding.EncodingName);(.Writeline :+sr.ReadToEnd();Sr.Close();Readline();.NET Unicode,txt .byte,string byte ,-txt stream byte ,:),.,-名师资料总结-精品资料欢迎下载-名师精心整理-第 3 页,共 5 页 -,?,朝时 -,?,.,.,-,.,.,208 .,.,.30 (,),.,.名师资料总结-精品资料欢迎下载-名师精心整理-第 4 页,共 5 页 -,名师资料总结-精品资料欢迎下载-名师精心整理-第 5 页,共 5 页 -