in reply to Re: Percent encoding of URIs with UTF-8 characters
in thread Percent encoding of URIs with UTF-8 characters
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.
uri_escape Encode::from_to($_, "UTF-8", "CP1250");