Question problem with streamreader

andrews

Well-known member
Joined
Nov 22, 2011
Messages
132
Programming Experience
5-10
I use streamreader to read a textfile.
That textfile contains extended ascii letters
The string variable that is read bij streamreader is not readed as them
It is a encoding problem but how to solve it?
Thanks for any response.
 
Specify the appropriate Encoding when you create the StreamReader. The constructor is overloaded so you can pass a specific Encoding. The Encoding class has properties that return some standard ones or you can create your own if required.
 
Back
Top