【发布时间】:2011-01-30 14:27:24
【问题描述】:
是我遗漏了什么还是 System.IO.FileStream 没有读取包含希伯来语的 Unicode 文本文件?
public TextReader CSVReader(Stream s, Encoding enc)
{
this.stream = s;
if (!s.CanRead)
{
throw new CSVReaderException("Could not read the given CSV stream!");
}
reader = (enc != null) ? new StreamReader(s, enc) : new StreamReader(s);
}
谢谢 乔纳森
【问题讨论】:
-
你错过了一些东西。您遇到了什么问题?
-
这种明目张胆的反犹太主义正是很多人还没有转向 C# 的原因。
-
你传入的是哪种编码?
标签: c# filestream