How to read Hebrew text using System.IO.FileStream?
Posted
by Jonathan Dyle
on Stack Overflow
See other posts from Stack Overflow
or by Jonathan Dyle
Published on 2010-03-23T00:25:47Z
Indexed on
2010/03/23
1:01 UTC
Read the original article
Hit count: 800
c#
|filestream
Hi all
Am I missing something or does System.IO.FileStream not read Unicode text files containing Hebrew?
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);
}
Thanks Jonathan
© Stack Overflow or respective owner