Thank you very much for all the help till now.
I have the following problem:
static void Main(string[] args)
{
Dictionary<string, string> dict = new Dictionary<string, string>();
using (StreamReader reader = new StreamReader(@"C:\test.csv"))
{
string line;
while ((line = reader.ReadLine()) != null)
{
string[] parts = line.Split(',');
dict.Add(parts[0],parts[1]);
}
}
Console.WriteLine("enter name:");
string name = Console.ReadLine();
if (dict.ContainsKey(name))
{
//
string value = dict[name];
Console.WriteLine(dict[name]);//value);
}
Console.ReadLine();
}
}
And this is my Outout:
enter name:
ILIA
????
This is my CSV file content
ILIA,ИЛИЯ
Can you please help me out clear this ???? and get the correct symbols in Cyrillic?
Thank in advance for any help!
Ilia