0

I came across situation where i want to check that given string contain unicode character or not?How to do that?

Jui Test
  • 2,399
  • 14
  • 49
  • 76

1 Answers1

2

You could do something like this.

string input = ... // your input.

if(input.Any(c => c > 255))
{
    // unicode 
}
Hari Prasad
  • 16,716
  • 4
  • 21
  • 35