C#读取txt文件时中文乱码

解决办法编码

使用GB2312中文字符集coding

StreamReader reader = new StreamReader(txtUrl, Encoding.GetEncoding("gb2312"));file

或使用默认编码格式di

StreamReader sR = new StreamReader(filePath, System.Text.Encoding.Default)字符集

相关文章
相关标签/搜索