L
Learning.Net
How to read a Unicode data saved as ASCII in notepad file as txt ?
I tried using streamReader but it is not showing Unicode data.
eg.
using (StreamReader sr = new StreamReader(test.txt)
{
string line;
// Read and display lines from the file until the end of
// the file is reached.
while ((line = sr.ReadLine()) != null)
{
Console.WriteLine(line);
}
Console.Read();
}
I tried using streamReader but it is not showing Unicode data.
eg.
using (StreamReader sr = new StreamReader(test.txt)
{
string line;
// Read and display lines from the file until the end of
// the file is reached.
while ((line = sr.ReadLine()) != null)
{
Console.WriteLine(line);
}
Console.Read();
}