Ravi Gupta
Ravi Gupta

Reputation: 6460

Control Characters in Resource files C#

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?

Upvotes: 0

Views: 3778

Answers (1)

Joey
Joey

Reputation: 354506

Three ways, I can think of:

  • Copy the character from the character map
  • Right-click the text field and select »Insert Unicode control character« and then »LRM Left to right control character«
  • Use ‎ in the source code.

Upvotes: 2

Related Questions