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.
I tried cpan install, fail!
cpan force install, still fail
cpan fforce install, the download and fetching starts.... but ends up said program too big to fit in memory.
btw, I tried both on Perl 5.10 and 5.14.
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!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||