mcc001 has asked for the wisdom of the Perl Monks concerning the following question:
Symptoms and reason for them: The filenames were encoded in latin1 and were put as bytestrings on the filesystem of the Windowsserver and then tagged being of the encoding scheme of the Windowsserver without being altered on byte level. The command 'dir' of that directory shows the correct count of characters, but the NON-ASCII-characters are shown as 'grey blcoks'.
The same directory shown in the Windows Explorer shows them in the 8.3 scheme of DOS and an attached ~<number>. I need to read the directory with perl in the way command.com sees the directory and to fix the problem WITHOUT changing the bytes of the filename as such.
I tried many versions of encode/decode/use bytes/pack-unpack. Too many to post them here.
How can I fix that with Perl only?
Thank you very much in advance!
Best regards,
mcc
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How to fix wrongly encoded filenames?
by Anonymous Monk on Mar 17, 2014 at 10:49 UTC | |
by mcc001 (Initiate) on Mar 17, 2014 at 17:53 UTC | |
by Anonymous Monk on Mar 18, 2014 at 07:16 UTC | |
Re: How to fix wrongly encoded filenames?
by andal (Hermit) on Mar 17, 2014 at 11:27 UTC | |
Re: How to fix wrongly encoded filenames?
by graff (Chancellor) on Mar 18, 2014 at 03:37 UTC | |
by Anonymous Monk on Mar 18, 2014 at 06:17 UTC | |
Re: How to fix wrongly encoded filenames?
by wollmers (Scribe) on Mar 18, 2014 at 10:10 UTC |