111

I fall into a surprising issue.

I loaded a text file in my application and I have some logic which compares the value having µ.

And I realized that even if the texts are same the compare value is false.

 Console.WriteLine("μ".Equals("µ")); // returns false
 Console.WriteLine("µ".Equals("µ")); // return true

In later line the character µ is copy pasted.

Any idea will be helpful.

BoltClock
  • 700,868
  • 160
  • 1,392
  • 1,356
D J
  • 6,908
  • 13
  • 43
  • 75

0 Answers0