in reply to Re^2: To decode URL-decoded UTF-8 string.
in thread To decode URL-decoded UTF-8 string.
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: To decode URL-decoded UTF-8 string.
by nikolay (Beadle) on Aug 28, 2018 at 12:03 UTC |