Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^5: How can I get a Unicode @ARGV?

by nikosv (Hermit)
on Sep 01, 2012 at 13:21 UTC ( #991156=note: print w/ replies, xml ) Need Help??


in reply to Re^4: How can I get a Unicode @ARGV?
in thread How can I get a Unicode @ARGV?

the 'dir' command in Win cmd works in Unicode regardless the code page;it's one of those Windows quirks.Go ahead change the code page to eg Cyrillic and try it out,you'll get the same result

In cp950: dir/b It shows the files with Unicode char correctly. However, dir/b > list.txt the content inside list turns into "????"

Is list.txt saved as ANSI (default)?. Save list.txt as Unicode and try again

In cp65001: dir/b It shows the files with monster char. However, dir/b > list.txt gives the correct list.

I guess cp65001 sets the file i/o to Unicode,that is why you see list.txt with correct list what is a monster char? maybe a font issue? what font are you using, Lucida Console?


Comment on Re^5: How can I get a Unicode @ARGV?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (16)
As of 2015-07-01 16:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (12 votes), past polls