When I use a StreamReader to read a Russian text from a file - id doesn't read it, leaving a blank string. I suppose it happens because there has to be a Russian encoding installed somewhere in msdevenv, so how do I do it?
2) System.Text.UnicodeEncoding() is a constructor of a class System.Text.UnicodeEncoding, so it doesn't return any value. It will work only in an expression like
CurrentEncoding = new System.Text.UnicodeEncoding();
as it will create a new instance of this class to work with.
Anyway, see (1). There has to be some other property or a variable or something like a "SetEncoding()" method.
3) I thought that the Unicode is a default setting for C#.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.