I have an Excel spreadsheet with lab data that looks like this:
µg/L (ppb)
I want to check the presence of the Greek letter "μ", and if found, I need to do something special.
Normally I would write something like this:
if ( cell.StartsWith(matchSequence) ) { //.. <-- universal symbol for "magic" :) }
I know that the Framework has an encoding API, but should I use it only for this edge or just copy the Greek microsymbol from the character map?
How can I check for the presence of this Unicode character? A character map seems like a “cheap” fix that will bite me later (I work for a company that is multinational).
I want to do something supported, and not just a crazy math-voodoo transform that only works for this case.
I think I'm asking for best practice advice here.
Thanks!
Chris source share