Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: encoding of file names

by amir_e_a (Hermit)
on Mar 25, 2010 at 20:53 UTC ( #830963=note: print w/replies, xml ) Need Help??


in reply to Re: encoding of file names
in thread encoding of file names

That's the thing - i would probably try using Encode, but i don't know the from encoding. The to encoding is supposed to be utf8.

Or do you mean to say that UTF-8 and utf8 are different things?

Replies are listed 'Best First'.
Re^3: encoding of file names
by almut (Canon) on Mar 25, 2010 at 21:10 UTC
    but i don't know the from encoding

    I think you can't do much harm by just trying 'UTF-8' as the from encoding :)

    $filename = decode("UTF-8", $filename);

    When your file names are in fact in UTF-8, things will likely work out fine. Otherwise, you'll know they aren't UTF-8 encoded, and you can try some other encoding...

      Thanks, it seems to work!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2023-03-24 06:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (60 votes). Check out past polls.

    Notices?