C#控制台应用程序中未显示货币符号

C#控制台应用程序中未显示货币符号,c#,string,console,format,symbols,C#,String,Console,Format,Symbols,你好 我目前正在学习C#,并编写了一个格式化字符串,该字符串应显示产品的成本: using System; namespace Formatting { public class Program { static void Main(string[] args) { int numerOfApples = 12; decimal pricePerApple = 0.35m; Console.Wr

你好

我目前正在学习C#,并编写了一个格式化字符串,该字符串应显示产品的成本:

using System;

namespace Formatting {
    public class Program {
        static void Main(string[] args) {

            int numerOfApples = 12;
            decimal pricePerApple = 0.35m;

            Console.WriteLine(
                format: "{0} apples const {1:c}",
                arg0: numerOfApples,
                arg1: pricePerApple * numerOfApples);

12个苹果多少钱?4,20

我已经查看了我的区域配置中的设置,那里的一切似乎都很好

我还在可视代码终端本身中运行代码,搜索web、StackOverflow,并浏览文档,但没有任何结果


提前感谢您教我一些新东西。

如果您将以下内容放在console应用程序的开头,会发生什么
Console.outpunecoding=System.Text.Encoding.Unicode@MatthewWatson,真管用!但是.Net不应该已经处理没有此代码的打印符号吗?请包含您的代码(我们无法调试图像,我肯定不会手动将您的图片代码键入VS)。控制台的默认字体往往不是unicode字体,所以我想这就是默认编码不支持unicode的原因。@MatthewWatson,所以可以通过玩控制台的设置来帮助它,谢谢你的帮助!