Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

File name issue in Archive::Zip

by AATG_PERL_1010 (Initiate)
on Oct 25, 2011 at 13:04 UTC ( #933619=perlquestion: print w/ replies, xml ) Need Help??
AATG_PERL_1010 has asked for the wisdom of the Perl Monks concerning the following question:

I am using Archive::Zip for zipping directories/files. It is working fine, but the file name which has swedish characters like is not encoded properly by Archive::Zip. It is printing as different symbols within the created zip file. Can any one suggest me any idea to solve this issue.

Comment on File name issue in Archive::Zip
Re: File name issue in Archive::Zip
by roboticus (Canon) on Oct 25, 2011 at 13:58 UTC

    AATG_PERL_1010:

    I'd double-check everything around line 42.

    </psychic-debug-mode>

    ...roboticus

    When your only tool is a hammer, all problems look like your thumb.

Re: File name issue in Archive::Zip
by Fox (Pilgrim) on Oct 25, 2011 at 14:07 UTC
    This is a known problem is the zip spec. If you were to have a choice I had say don't use Zip. an great alternative is 7z which have proper support for unicode.

    If you don't have a choice, you will have to do the work yourself. See this: https://rt.cpan.org/Public/Bug/Display.html?id=35334
Re: File name issue in Archive::Zip
by Lotus1 (Chaplain) on Oct 25, 2011 at 14:18 UTC

      I am using perl version 5.8.8 for MSWin32-x86-multi-thread

      and perl v5.8.4 for sun4-solaris-64int

      I am using both Windows(XP) and Solaris( sun4-solaris-64int). First i will do the coding/testing in windows, once it is done, i will commit to Solaris server and then finally will use that code from Windows machine(As a web based application(using CGI)).

      When i was searching for the version of Archieve::Zip through its package ".pm" file, i found it is Revision 1.6 and created in 2000

        That is a really ancient version of Archive::Zip. Although the bug is still active why not upgrade and try again. The part that you need might have been fixed already.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://933619]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2014-08-23 05:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (172 votes), past polls