in reply to encoding problem om Ubuntu Linux
Could you do two things for me.
Could you use Devel::Peek on the file name coming out of the CSV. I'd like to find out how your string is encoded and if it's a string of characters.
use Devel::Peek; Dump($filename);
Could you use Devel::Peek on the file name from the disk? I'd like to find out how its encoded on disk.
use strict; use warnings; use Devel::Peek qw( Dump ); my $dir = '/media/usbdisk/music/checkit/Crosby, Stills, Nash & Young'; opendir(my $dh, $dir) or die; while (defined(my $fn = readdir($dh))) { Dump($fn) if / vu$/; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: encoding problem om Ubuntu Linux
by j.goor (Acolyte) on Jun 20, 2008 at 10:28 UTC | |
by almut (Canon) on Jun 20, 2008 at 10:58 UTC | |
by j.goor (Acolyte) on Jun 20, 2008 at 11:08 UTC | |
by moritz (Cardinal) on Jun 20, 2008 at 11:19 UTC | |
by almut (Canon) on Jun 20, 2008 at 11:21 UTC | |
by j.goor (Acolyte) on Jun 20, 2008 at 11:46 UTC | |
|