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.

    1 answer 1

    1. module Encode or Text :: Iconv
    2. module URI :: Escape