Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Using literal Japanese filenames in legacy CP932 encoding with system(), etc.

by almut (Canon)
on Oct 24, 2006 at 16:13 UTC ( [id://580313]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    system("mkdir \"C:\\Documents and Settings\\All Users\\\x83\x58\x83\x5
    +E\x81\x5B\x83\x67 \x83\x81\x83\x6A\x83\x85\x81\x5B\\\x83\x76\x83\x8D\
    +x83\x4F\x83\x89\x83\x80\\\x91\xE3\x95\x5C\"");
    
  2. or download this
    use Encode "encode";
    
    ...
        my @args = map encode("cp932", $_), @_;
        CORE::system(@args);  # call original internal routine
    };
    
  3. or download this
    system("mkdir \"C:\\Documents and Settings\\All Users\\\x{30B9}\x{30BF
    +}\x{30FC}\x{30C8} \x{30E1}\x{30CB}\x{30E5}\x{30FC}\\\x{30D7}\x{30ED}\
    +x{30B0}\x{30E9}\x{30E0}\\\x{4EE3}\x{8868}\"");
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://580313]
Approved by Corion
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-04-25 06:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found