convert_cyr_string() was removed in PHP 8.0. In this example we use iconv() to convert a string from the character-set windows-1251 to cp866.
In this example we convert a string from the character-set "w" (windows-1251) to "a" (x-cp866).