in reply to Re^2: treat files with umlauts (utf)
in thread treat files with umlauts (utf)
"That's because your code is missing the two key ingredients:"
No, it's not.
"use utf8;"
Neither my code nor the code the OP posted requires the utf8 pragma. See the following, from that documention, which it shows in bold-faced type:
"Do not use this pragma for anything else than telling Perl that your script is written in UTF-8."
"my $scandir = 'something with umlauts it it';"
The OP does not say that $scandir contains umlauts. The only mention of umlauts by the OP is:
"Given is a file which contains german umlauts in its name (e.g. 'Fehler für Projekt x.xls')"
He says "file" and provides what would be resonable to assume is an MS Excel spreadsheet file. There's nothing about any directory whose name contains umlauts.
-- Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: treat files with umlauts (utf)
by hazylife (Monk) on Apr 01, 2014 at 12:54 UTC | |
by kcott (Archbishop) on Apr 01, 2014 at 13:25 UTC | |
by hazylife (Monk) on Apr 01, 2014 at 14:00 UTC | |
by kcott (Archbishop) on Apr 02, 2014 at 01:30 UTC | |
by hazylife (Monk) on Apr 02, 2014 at 10:54 UTC | |
|