in reply to Re: UTF-8 lexicographic string sort
in thread UTF-8 lexicographic string sort
I am not sure that your code is correct.
Let us look at this snippet your suggested:
decode('UTF-8', $File::Find::name)
Let us look at the documentation for Encode::decode:
This function returns the string that results from decoding the scalar value OCTETS, assumed to be a sequence of octets in ENCODING, into Perl's internal form.
Your code is therefore assuming that $File::Find::name is in UTF-8, but this may not be correct.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: UTF-8 lexicographic string sort
by Corion (Patriarch) on Apr 23, 2020 at 12:08 UTC | |
by rdiez (Acolyte) on Apr 23, 2020 at 14:15 UTC | |
by Corion (Patriarch) on Apr 23, 2020 at 14:22 UTC | |
by haukex (Archbishop) on Apr 23, 2020 at 15:28 UTC |