Perl Monk, Perl Meditation | |
PerlMonks |
Re^2: Percent encoding of URIs with UTF-8 charactersby andal (Hermit) |
on Mar 22, 2013 at 08:45 UTC ( [id://1024890]=note: print w/replies, xml ) | Need Help?? |
Just a small note. In the above example, the strings are coming from the source, so the "encode" function is used to convert them to CP1250. In the OP script, the strings are coming from external file and they are already "octet sequences", so instead of "encode" one should use "from_to". Of course, an alternative would be to specify "encoding" for the file, but current version of the script does not do it.
In Section
Seekers of Perl Wisdom
|
|