I had a problem reading Russian characters from a TXT file. When I read it, the text always gets corrupted. The file encoding is UTF8.
Here is the code:
TextReader reader = new StreamReader(deliveryLocation, Encoding.UTF8);
translatedContent = reader.ReadToEnd();
reader.Close();
Can someone tell me what I am doing wrong? I tried to use all supported encodings, but the text is always corrupted?
Edit: Here is a sample text that I need to read from a file:
From the tables above we see can shadow and WinRunner take 3p about the same time to set up and run the test test in there will be a few required screen shots. Where a larger number of screenshots is required, time is swearing for launching a shadow than time swearing for writing a code and in order to execute it in WinRunner. The engineer notes in his report that WinRunner requires you when it does not work. Each resource must have the name SHILA (SHILO will be the language for the customer’s owners).
thank
source
share