我正在尝试将我的程序的cultureinfo从默认的en-US更改为it-IT:
decimal x = 12000;
Console.WriteLine("The current culture is {0}", Thread.CurrentThread.CurrentCulture.Name);
Console.WriteLine("currency: {0:C}", x);
Thread.CurrentThread.CurrentCulture = new CultureInfo("it-IT");
Console.WriteLine("The culture changed in {0}", Thread.CurrentThread.CurrentCulture.Name);
Console.WriteLine("currency: {0:C}", x);
Console.ReadLine();
输出是: capture
而不是问号,应该有€。 我做错了什么?