简体   繁体   English

我可以在 C# 控制台应用程序中使用 Unicode 吗?

[英]Can I use Unicode in a C# Console Application?

I tried to use this code:我尝试使用此代码:

代码

But I get this all the time:但我一直得到这个:

输出

Is there a way to "convert" this?有没有办法“转换”这个?

yes you need to convert it:是的,你需要转换它: 是的,你需要转换它:

you need to make a "\\" that will show the program, that you are not just simply type any characters.你需要制作一个“\\”来显示程序,你不仅仅是简单地输入任何字符。

you can find the Unicode on many websites for example here您可以在许多网站上找到 Unicode ,例如这里

than you will get your Smiley, this dose not work with every Unicode Character!比你会得到你的笑脸,这并不适用于每个 Unicode 字符! 转换后的图片

kindly regards Juan ☺亲切的问候胡安☺

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在C#控制台应用程序中使用配置替换 - How Can I Use Configuration Replacements for C# Console Application 如何在 C# 控制台中显示扩展的 Unicode 字符? - How can I display extended Unicode character in a C# console? 将 C# 控制台应用设置为 Unicode output - Set C# console application to Unicode output C#控制台+ Unicode - C# console + Unicode 我可以在我的C#GUI应用程序中构建控制台应用程序吗? - Can I build a console application into my C# GUI application? 我如何使用linq在C#中创建控制台应用程序以计算句子中的元音 - How can i use linq to make a console application in C# for counting vowel in a sentence C#-Emgu CV-我可以在控制台应用程序上使用Emgu cv吗? - C# - Emgu CV -Can i use Emgu cv on a Console Application? 如何使用作为参数传递给C#控制台应用程序的指针? - How can I use pointers passed as arguments to a C# Console Application? C#控制台应用程序properties.resources无法正常工作? 我可以使用什么参考来解决此问题? - C# Console application properties.resources isn't working? What reference can I use to fix this? 如何在 C# 核心控制台应用程序中使用 OData 查询? - How can I use OData Queries inside a C# core console application?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM