< c#>像“''&quot”的角色“”或“&quot”退出控制台输入
我有需要输入的AC#控制台应用程序,其中包含诸如“”,“Ö”或“Å”之类的字符。但是这些字符退出了输入。例如,如果用户输入是“ABCäöå”,则将其作为“ ABC”提供给该程序吗?
I have a c# console application that needs input that contains characters like "ä", "ö" or "å". But these characters drop out of the input. For example if the user input is "abc äöå" it is delivered to the program as "abc " an anyone help?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以根据下面的摘要代码更改编码:
和输出:
基本类型/字符编码“ rel =“ nofollow noreferrer”>如何使用.net中的字符编码类
You can change encoding as per below snippet code:
And the output:
For more information check How to use character encoding classes in .NET