Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re^2: how to read unicode filename

by Anonymous Monk
on Mar 14, 2006 at 10:17 UTC ( #536506=note: print w/ replies, xml ) Need Help??

in reply to Re: how to read unicode filename
in thread how to read unicode filename

dear monks,
i saw the above link which is useful . but i have trouble in the unpack operation .
Is it possible to pack the chinese characters like,<\br>

the output : ascii junk.
i tried the above but that is not giving me the appropriate answer. Any one tell why that happening.

Comment on Re^2: how to read unicode filename
Download Code
Replies are listed 'Best First'.
Re^3: how to read unicode filename
by Anonymous Monk on Sep 20, 2012 at 20:15 UTC

    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 $_; }

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://536506]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2016-02-14 13:29 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (470 votes), past polls