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 6249861
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T13:19:02+00:00 2026-05-24T13:19:02+00:00

I have a ant build script that uses a build.properties file. There I have

  • 0

I have a ant build script that uses a build.properties file. There I have something like this:

release_type=debug
version_code=1
version_name=1.0.0
logo_text=This is German: special chars like ä or ö

My problem is now, that I use logo_text to replace a placeholder in an xml file and the result is in 2 of 3 builds garbage like:

<string name="logo_text">"This is German: special chars like ää or ü."</string>

I have 3 build targets (each using their own properties file) and its always the same 2 get the mess up, the third one is correctly replaced.

The source of the text is always a build.properties which is UTF-8 encoded and the build file uses UTF-8, too. I can’t find any difference why the two have this issue.

How I replace the placeholder with the text:

<?xml version="1.0" encoding="UTF-8"?>
<project name="branding-builds">
    <!-- code snipped -->
    <copy todir="./${short_title}">
        <fileset dir="./brandings/${short_title}">
            <exclude name="**/*.png"/>
            <exclude name="**/*.java"/>
        </fileset>
        <filterset>
            <filter token="LOGO_TEXT" value="${logo_text}" />
        </filterset>
    </copy>
    <!-- code snipped -->
</project>

Info: Rewriting the special chars to make sure that copy&paste didn’t messed up didn’t solve the issue.

  • 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-24T13:19:02+00:00Added an answer on May 24, 2026 at 1:19 pm

    A properties file should’t be UTF-8 encoded. Quote from http://download.oracle.com/javase/6/docs/api/java/util/Properties.html:

    the input/output stream is encoded in ISO 8859-1 character encoding.
    Characters that cannot be directly represented in this encoding can be
    written using Unicode escapes ; only a single ‘u’ character is allowed
    in an escape sequence. The native2ascii tool can be used to convert
    property files to and from other character encodings.

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

Sidebar

Related Questions

I have an ant build script that needs to pull files down from a
I have a Java project that I build using an Ant script. I am
I've got a executable JAR file. And I've got an Ant build script that
I have an Ant project that uses a bit of Coffee Script. I would
I have an Ant script that I would like to execute using a button
I have an ant build script that errors out with the following message. javac
I have an ant script that does a headless build using the following ant
I'm trying to run a script that uses an ANT build but I don't
We have inherited an ant build file but now need to deploy to both
When you define an extension-point in an Ant build file you can have it

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.