in reply to File::List, UTF-8, and Tk
use Encode; ... for my $entry (@entries) { $entry = decode('utf8', $entry); ...
This works in both cases (command-line and Tk env), although the debug print of the filename is now screwed when displayed on the console (the utf8 char is now unicode, I think), not that that matters:
DEBUG: processing '/tmp/zumlaut//Zat�ichi 01 - The Tale of Zato +ichi (1962)' ...
I'm always reluctant to modify distribution modules and this fix feels very klugy. Suggestions please?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: File::List, UTF-8, and Tk
by Anonymous Monk on Apr 28, 2011 at 04:14 UTC | |
by ron7 (Beadle) on Apr 28, 2011 at 04:45 UTC | |
by ron7 (Beadle) on Apr 29, 2011 at 02:07 UTC |