资源文件中的控制字符 C# [英] Control Characters in Resource files C#

查看:21
本文介绍了资源文件中的控制字符 C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在 Visual Studioresource.resx 文件中添加 Left-To-Right 控制字符.我在互联网上搜索并发现了一个名为 另一种在 .NET 资源文件中转义序列的方法 表示要在资源文件中插入 unicode 字符,请按 Alt 键并从 NumPad 中键入 unicode 的十进制等效项.但是使用所描述的方式,当我输入 8206(十进制的 \u200e 时,它​​会插入 ♫,并且输出中也会显示相同的字符.有人知道我在这里做错了什么吗?

I want to add Left-To-Right control character in resource.resx file in Visual Studio. I searched over internet and came across a tutorial called Another Way to Escape Sequences in .NET Resource Files which say inorder to insert a unicode character in resource file, press the Alt key and type decimal equivalent of unicode from NumPad. But using the way described, when I type 8206(decimal equivalent of \u200e, it inserts ♫ and the same character is being displayed in the output as well. Does anybody know what I am doing wrong here?

推荐答案

三种方式,我能想到的:

Three ways, I can think of:

  • 复制字符映射中的字符
  • 右键单击文本字段并选择»插入 Unicode 控制字符«,然后选择 »LRM 从左到右控制字符«
  • 在源代码中使用‎.

这篇关于资源文件中的控制字符 C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆