我正在尝试在控制台窗口中使用货币符号打印金额:
string cultureCode = "hi-IN";//"it-IT";
decimal amount = 123.54M;
CultureInfo cultureInfo = new CultureInfo(cultureCode);
string strAmout=String.Format(cultureInfo, "{0:C}",amount);
Console.OutputEncoding = System.Text.Encoding.UTF8;
Console.WriteLine(strAmout);
金额在观察窗口中正确显示,但不在控制台窗口中显示。