Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Renaming non-ascii files

by halley (Prior)
on Jun 01, 2005 at 13:10 UTC ( [id://462421]=note: print w/replies, xml ) Need Help??


in reply to Renaming non-ascii files

One, you could be more clear that you're talking about non-ASCII filenames and not the contents. Someone above already seems confused on that point.

Two, the "backticks rename" method relies on your operating system shell. On DOS/Windows, the rename command allows wildcards in source and target, and the shell has weak support for non-ASCII filenames. The graphical shell probably has a completely different set of bugs when dealing with non-ASCII filenames.

Three, the internal rename() function relies on your operating system routines.

Four, whenever you say "non-ASCII" you should indicate what encoding you are using. ISO-2022-JP? Codepage 328? What types of characters are you trying to put into filenames?

Five, once you know the encoding you think you're using, look up the Encode modules and google around to see if anyone else has any similar problems or solutions.

The quality of the help is always proportional to the quality of the question. Said another way, if we can't understand you, we can't offer the advice you seek.

--
[ e d @ h a l l e y . c c ]

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2024-04-20 10:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found