1

My code is

string[] separate = { ",", ", " };
        string input = Console.ReadLine();
        string[] values = input.Split(separate, 4, StringSplitOptions.RemoveEmptyEntries);
        foreach (var item in values)
        {
            Console.WriteLine(item);
        }

It works perfectly fine with numbers and latin letters, but when I use cyrillic it returns an empty string

For Example if I type in "cyrillic, кирилица, 1, 3" it returns

cyrillic

1
3
stuartd
  • 70,509
  • 14
  • 132
  • 163
Becky
  • 11
  • 1

0 Answers0