in reply to Re^2: how to read unicode filename
in thread how to read unicode filename
In Windows 7, this outputs a correct utf8 listing.
open fList, '-|:encoding(UTF-16LE)', 'cmd /U /C dir /W'; open fOut, '>', 'out.txt'; foreach (<fList>) { utf8::encode($_); print fOut $_; }
|
---|