Swedish characters with streamreader?

patdenim

Member
Joined
Apr 8, 2005
Messages
12
Im working on an application where I need to import text from a txt file. Ive used streamreader for this and it works fine.
The problem is that it skips the swedish characters
 
When you create the StreamReader you can use one of the overloaded constructors and specify the encoding to use.
Code:
dim sr as New IO.StreamReader(fs, System.Text.Encoding.GetEncoding(???))

where you would replace the ??? with either the code page or encoding name
 
Back
Top