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
Read Swedish characters
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
VulpesRank #55 · 29.2K reputationPosted Apr 19, 2012, 6:27 AM EDT
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));