Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4257390
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T05:30:19+00:00 2026-05-21T05:30:19+00:00

If I want do this with python,the code just like : #!usr/bin/python import os

  • 0

If I want do this with python,the code just like :

#!usr/bin/python
import os
import sys
reload(sys)
sys.setdefaultencoding('utf-8')

path = 'H:\\Dolly. - 。.〆bear小熊-葉鏗然-ω·)~☆ぼんじ'
print(path)
os.mkdir(path)

but I try use perl,it does not work.

#!/usr/bin/perl
use File::Path;
use utf8;
path = 'H:\\Dolly. - 。.〆bear小熊-葉鏗然-ω·)~☆ぼんじ';
make_path(path );
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T05:30:20+00:00Added an answer on May 21, 2026 at 5:30 am

    Unfortunately, Perl is really bad at supporting Windows. In this case, this is partly due to Perl considering file names to be opaque strings of bytes rather than text. As such, the builtins don’t use the (W)ide interface calls, so you are limited to your system’s “(A)NSI” encoding. On most machines, thats’s cp1252.

    Win32::FindFile provides an interface to CreateDirectoryW under the name CreateDirectory.

    #!/usr/bin/perl
    use utf8;
    use Win32::FindFile qw( CreateDirectory );
    my $dir = 'H:\\Dolly. - 。.〆bear小熊-葉鏗然-ω·)~☆ぼんじ';
    CreateDirectory($dir)
       or die $^E;
    

    Untested, but I’d be surprised if it doesn’t work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to do something like this: c:\data\> python myscript.py *.csv and pass all
I've got python code of the form: (o,i) = os.popen2 (/usr/bin/ssh host executable) ios
This is an incredibly simple question (I'm new to Python). I basically want a
I want to do this so that I can say something like, svn mv
I want to profile my Python code. I am well-aware of cProfile , and
Here's a simple (hopefully) L10N question: Do all locales want this format: Sunday, Nov
I have this div: <div class=inauguration-image> I do not want this text to display,
My Invoice model has an address_id attribute, and I don't want this address_id to
I have a class that contains an array. I want this array to be
I want to do this: //*fu which returns all nodes whose name ends in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.