Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: how to read unicode filename

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


in reply to how to read unicode filename

Have a look here

Replies are listed 'Best First'.
Re^2: how to read unicode filename
by Anonymous Monk on Mar 14, 2006 at 10:17 UTC
    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>
    pack("A4",$chinese);
    the output : ascii junk.
    i tried the above but that is not giving me the appropriate answer. Any one tell why that happening.

      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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2019-10-17 02:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?