DUPLICATE: Problems with Cyrillic characters in Dynamic Data

I have sample function:

function plural_form($number, $one, $two, $five) {
    $cases = array(2, 0, 1, 1, 1, 2);
    return ' ' . (
        ($number % 100 > 4 && $number % 100 < 20) ?
        $five :
        (($number % 10 == 1) ?
        $one : (($number % 10 >= 2 && $number % 10 <= 4) ?
        $two : $five))
    );
}

And when trying to use it in a Dynamic Data Field with Cyrillic characters, it breaks!

Dynamic data:
{echo:plural_form(1, 'число','числа', 'чисел')

It’s ok with Latin characters like
{echo:plural_form(1, 'number','numbers', 'numbers')

It is especially necessary for “Counters” element in “Suffix” field.

Hi @denjamins,

Welcome to the forum :slight_smile:

I just replied in this forum thread about this bug so I’m going to mark this one as a duplicate so that we have one place to follow the issue.