Hi,
I am reading a file using StreamReader but I am unable to read Swedish characters like ä, å, ö.
How can I add this ability?
Thank you
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Apr 19, 2012, 10:27 AM
See if it's any better if you specify an encoding in the constructor. Something like:
StreamReader sr = new StreamReader(filePath, System.Text.Encoding.GetEncoding(1252));