今天遇到mobile 下中文乱码
以作记录,直接上代码
存在乱码方法:System.IO.StreamWriter objWriter = System.IO.File.CreateText(“\\log.txt”);
修改后,不乱码代码:StreamWriter sw = new StreamWriter("\\log.txt", false, Encoding.Default);
Powered by: 博客园 Copyright © 2024 星月 Powered by .NET 8.0 on Kubernetes