I'm writing a silverlight 5 application in which I need to read a text file from the user.
Here is a snippet of my code:
using (StreamReader reader = new StreamReader(fileStream, Encoding.GetEncoding("windows-1255")))
But I get the exception: "'windows-1255' is not a supported encoding name". Why is that?
And then, how do I read a file in the "windows-1255" encoding? (Hebrew)