Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3322608
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T23:12:08+00:00 2026-05-17T23:12:08+00:00

I cannot find any documentation on the encoding of file names in zip files.

  • 0

I cannot find any documentation on the encoding of file names in zip files.

I have to pack file names with German umlauts into a zip, load it into an Android and unpack there. Then I have to refer to these files with names that are stored in another file. The latter is UTF-8, so there is no problem with umlauts. But I need to make sure, that the unzipped files have the proper names after unpacking on the Android.

Currently, I am using info-zip on Windows 7 to pack the archive, and the API functions on the Android to unpack, and everything worked. However, if I use jar from the Java SDK or 7z for the packaging, the files come out on the Android with wrong names. This makes me wonder, if there is any proper solution for this at all (besides using antique ASCII file names only).

I assume Android uses Unicode file names, so all I had to do is to force the zipper program to encode the file names in Unicode too. It this possible?

Thanks for your time, RG

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T23:12:09+00:00Added an answer on May 17, 2026 at 11:12 pm

    I found a workaround.

    public static String iso (String s)
        {
            byte bytes[]=EncodingUtils.getBytes(s,"iso-8859-1");
            return new String(bytes);
        }
    

    This function converts an ISO-8859-1 string to a Java Unicode string. You can apply this to the filename you get from ZipEntry.getName(), and use it to store the file. This lets you generate zips and read the content on the Android.

    For transportation from Windows (say) to Android, you can zip and unzip using jar from the JDK. Info-zip does not work!

    That’s a pretty cool solution, but it will fail for Japanese characters or anything out of ISO-8859-1. Don’t know what to do then.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i cannot find any documentation of this project
I cannot find any documentation on the kflushd such as what it does exactly,
I cannot find any documentation. All I want to do it set jQuerys default
I simply cannot find any documentation on what I'm supposed to include in my
I cannot find any documentation on how to read the exception.log in Magento; where
I'm working on a project and cannot find any documentation that verifies signal/thread behavior
Does anyone have any documentation or info on the file structure of the contacts.edb
I encountered SYS#0 at the top of a stack and cannot find any documentation
I cannot find any documentation on error codes with regard to Android. I am
Cannot find any example on Google.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.