StreamWriter outputs Chinese garbled questions

zhaozj2021-02-08  210

Recently, I learned C #, and I found some garbled problems in the file to the file to the file. Solve the following general: outfile = new streamwriter ("c: //abc.txt", false); this Outfile = New Streamwriter ("c: //abc.txt", false, encoding.getencoding ("GB2312")); Outfile.WriteLine ("Chinese"); there is no problem in outputting Chinese;

转载请注明原文地址:https://www.9cbs.com/read-2528.html

New Post(0)