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

  • Home
  • SEARCH
  • 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 9093115
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T23:00:35+00:00 2026-06-16T23:00:35+00:00

I am unzipping a file under Windows in a Groovy script like this: def

  • 0

I am unzipping a file under Windows in a Groovy script like this:

def ant = new AntBuilder()
ant.unzip(  src: path.absolutePath,
            dest: directoryName,
            overwrite: "false")

The zip file contains files with German Umlauts in their name (like “Glück”), these file names are damaged after the unzipping. It is clear that I run into an encoding issue here. So I tried to set the encoding:

def ant = new AntBuilder()
ant.unzip(  src: path.absolutePath,
            dest: directoryName,
            overwrite: "false",
            encoding: "XXX")

But whatever encoding I tried (from this site), I was not able to solve my issue:

  • "windows-1252" or "cp1252" lead to an java.nio.charset.UnmappableCharacterException
  • "ISO-8859-1" just removed the special chars
  • "Utf-8", "native-encoding" or no encoding lead to wrong characters

Does anyone know how to solve this?

  • 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-06-16T23:00:36+00:00Added an answer on June 16, 2026 at 11:00 pm

    I used "Cp850" and everything worked. However I had to find the correct code page with try-and-error. I would have expected that UTF-8 will work or that `”native-encoding”´ would find the right encoding as every zip tool does.

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

Sidebar

Related Questions

I am new to unix and am practicing a simple script to unzip a
Hey, I'm trying to unzip a file using this class: public class Decompress {
Is there a simple Python function that would allow unzipping a .zip file like
The unzip command doesn't have an option for recursively unzipping archives. If I have
how to find list of files inside zip file without unzipping it in c#.
I am trying to unzip some zip file, it has about 65 megs. Code
If I am unzipping a Zip file with the Python ZipFile library, where the
I want to include a jar file ( ant-contrib.jar ) in my ant build.xml
My application requires to unzip a zip file located in Azure's blob storage. Is
How can I unzip a .zip file with Python into some directory output_dir and

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.