I am using StringComparison, "vi-VN" culture; Why does comparing string "TH" or "Th".StartsWith("T", StringComparison.CurrentCulture) return false?
Th is a grapheme in Vietnamese. It is a single unit of text, rather than two units of text as it would be in English. Thus, Th does not start with T, as it is it's own unique character.
You would need to use a culture which does distinguish between Th and the letters T and h. For example:
"Th".StartsWith("T", StringComparison.InvariantCulture)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With