How to get StreamReader to properly read unusual characters?

  • Thread starter Thread starter alien
  • Start date Start date
A

alien

Hi, I'm using a StreamReader (readLine()) to read text from a file, but some
lines in the file I'm reading have odd characters, such as the Euro symbol,
etc. I find that no matter what encoding I use with the StreamReader, these
characters either get entirely ignored, replaced with a "?", or replaced by
some other character. Is there anything I can do to make this work, or
should I use something like BinaryReader?


Thanks.
 
Back
Top