Code:
my $str = "Привет мир"; It is necessary to encode the string in windows-1251 , and then skip through uri_escape , in order to get a string like this:
%CF%F0%E8%E2%E5%F2+%EC%E8%F0
Like that:

I tackle the problem the second day, read about the encoding in Perl, but nothing helps.