Ruble ( ₽ ) character in C# not able to detect during string operation

Viewed 37

I am trying to parse in C# for "₽". For example below is the snippet.

Console.WriteLine("Some₽Text".IndexOf("₽"))

In above statement I am supposed to get 4 but I am getting 0. Is there any limitation on certain character or symbol in c#. Sorry I am newbie to C# so trying to find the root cause of this.

0 Answers
Related