非常感谢您到现在为止的所有帮助。
我有以下问题:
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();
}
}
这是我的输出:
enter name:
ILIA
????
这是我的 CSV 文件内容
ILIA,ИЛИЯ
你能帮我解决这个问题吗????并获得西里尔文的正确符号?
提前感谢您的帮助!
伊利亚