Hello again nikolay,
Then try this (it should work as expected):
#!/usr/bin/perl
use utf8;
use strict;
use warnings;
use URI::Escape;
use feature 'say';
use Encode qw/ decode /;
binmode STDOUT, ':utf8';
sub decodedUri {
return decode 'UTF-8', uri_unescape( shift );
}
say decodedUri('%d0%be%d0%b1/%d1%81%d1%82%d0%b5%d0%bd');
__END__
$ perl test.pl
об/стен
BR / Thanos
In reply to Re^3: To decode URL-decoded UTF-8 string.
by thanos1983
in thread To decode URL-decoded UTF-8 string.
by nikolay
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |