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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T12:06:26+00:00 2026-06-05T12:06:26+00:00

I am using spanish UTF-8 characters in my WebDriver test which works ok if

  • 0

I am using spanish UTF-8 characters in my WebDriver test which works ok if ran from Eclipse, but if I try to run the same via Ant the test fails as it cannot find some elements with special characters. I figured out the encoding is messed up but I cannot seem to set up it properly. I tried the following to no avail

<junit printsummary="yes" haltonfailure="no" fork="yes">
    <jvmarg value="-Dfile.encoding=UTF-8"/>
        <classpath>
            <pathelement location="${bin}" />
            <fileset dir="${lib}">
                <include name="**/*.jar" />
            </fileset>
        </classpath>

    <test name="com.yourcompany.selenium.MyTest" haltonfailure="no" todir="${report}/xml" outfile="TEST-result">
        <formatter type="xml" />
    </test>
</junit>

Tried also by adding the encoding value to command line, but the test still fails.

  • 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-05T12:06:27+00:00Added an answer on June 5, 2026 at 12:06 pm

    Found the culprit. The encoding was handled correctly by the junit task, the problem was at the compiling level as Ant seemed to compile using Cp1250 encoding. Adding encoding=”UTF-8″ to the compile task solved the problem.

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

Sidebar

Related Questions

I'm getting some data which is encoded in UTF-8 , which will be Spanish.
I'm using a webservice which provides me a list of countries to choose from
I am using UTF-8 encoding on my website. Lately I have been storing chinese/spanish/russian
I am using NSXmlParser I fetch all the data from server, but parsing do
I'm using IIS7 and Umbraco 4 to run a clients site but I'm having
I have a Spanish validation message which I'm trying to display using my JavaScript.
I'm using Jquery datepicker with Spanish & French. It works except that the button
I'm using pdftotext to convert Spanish language text. Characters with accents or tildes are
I am using GWT. i implemented internationalization to support spanish language. but spanish chars
Using Nunit, I want to be able to write a test fixture that will

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.