perl - open file in folder with unicode name on Windows -
i have folder on usa windows 7 computer titled "フォルダ". there's file in called "foo.txt", , put few lines of text in it. i'm trying read it, apparently sticky problem. answer related question had simple-looking method open file:
use utf8; use encode::locale; use encode; $path = 'c:\users\my name\desktop\logrus_workspace\フォルダ\foo.txt'; $new_path = encode(locale_fs => $path); print $new_path; open $fh, '<', $new_path or die $!;
the call open
dies invalid argument
. idea specific problem message indicates, , how can unicode-named file open?
Comments
Post a Comment