http://qs321.pair.com?node_id=11133425


in reply to Perl strings questions

Re: code in the update:

This part is almost certainly wrong:

my $postdata = Encode::encode('UTF-8', "x=1&y=2&z=greektext"); # for e +xample, my $p1 = "$nonsense".'&'.$postdata; # yes & needed my $p1_utf8 = Encode::encode_utf8($p1);

You're encoding your text twice.

Replies are listed 'Best First'.
Re^2: Perl strings questions
by bliako (Monsignor) on Jun 02, 2021 at 17:29 UTC

    Thanks, that should then been urlencode() !!!