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
  • 665,005
  • 155
  • 1,345
  • 1,328
D J
  • 6,638
  • 13
  • 40
  • 74

0 Answers0