Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Win32 FileSystem codepage

by ikegami (Patriarch)
on Dec 06, 2010 at 20:37 UTC ( [id://875687]=note: print w/replies, xml ) Need Help??


in reply to Win32 FileSystem codepage

  • Windows:

    You can obtain the ANSI code page using GetACP. It's trivial to write Win32::API glue for that function.

    For existing files, you can use Win32::GetANSIPathName.

  • Unix:

    open's ":locale" uses the following to determine the appropriate encoding:

    require encoding; $locale_encoding = encoding::_get_locale_encoding();

I don't know if anyone got around to making this usable.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (6)
As of 2024-03-28 11:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found