|Welcome to the Monastery|
How can I get a Unicode @ARGV?by exilepanda (Pilgrim)
|on Aug 31, 2012 at 02:19 UTC||Need Help??|
exilepanda has asked for the
wisdom of the Perl Monks concerning the following question:
I have a script that packed as Executable. The usage is drop files or folder to the executable and then prompt for "What to do" option.
Everything goes fine, until a new problem comes, which is @ARGV can't recognize Unicode file/dir name. and the path passing in becomes ?????. Then unable to locate the path for action.
Since the client side do not have have Perl installed, so this can't be perl -CA "script.pl" or if I try to use #!perl -CA and it said It's too late for "-CA" option
I've did some research, some may suggest to use I18N::Langinfo This drive me another problem, it is I can't install the module whatever I tried.
I tried ppm install, don't find this module.
Anyway, my question is how to retrieve the @ARGV correctly? I am working on a Big5(Traditional Chi) XP system, however my script need to read GB(Simplified Chi), and Japanese char(path). What can I do about it? Please help, Thanks in advance!