Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^5: Directory operations and Unicode

by afoken (Abbot)
on Nov 11, 2011 at 13:29 UTC ( #937579=note: print w/replies, xml ) Need Help??


in reply to Re^4: Directory operations and Unicode
in thread Directory operations and Unicode

what is your suggestion of doing it otherwise ?

Using the "wide" API directly, of course. As long as Perl is compiled as an ANSI application, the only way to do so is to write a module, either using XS or Win32::API. Perl can handle Unicode, the only annoyance is that Perl currently uses a different encoding than Windows, so each and every wrapper function that passes strings from and to Windows needs to convert the strings. DBD::ODBC is an example for this; compiled on Windows, it prefers the "wide" API for ODBC, unless explicitly disabled.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://937579]
help
Chatterbox?
[stevieb]: Finally, somehow, fried my first Raspberry Pi :) It was one I was using in a mock grow room with no protection, so I think humidity got to it.

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2018-01-16 21:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (192 votes). Check out past polls.

    Notices?