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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T02:00:02+00:00 2026-06-13T02:00:02+00:00

I’ve been trying to get this to work for about 1.5 hrs now… I

  • 0

I’ve been trying to get this to work for about 1.5 hrs now…

I have Emma running within Jenkins and have Jenkins moving the Emma reports to the artifacts directory so they can be viewed within the Jenkins build. This all works fine except the reports are encoded with ISO-8859-1. When I run Jenkins via java -jar jenkins.war or put the jenkins.war in my local Tomcat, both of them show the Emma coverage pages with the spaces appearing as question marks within a solid diamond.

I have my jvm and local Tomcat set to UTF-8 and don’t want to (can’t really) change them. As a quick test, I loaded one of the HTML files into my editor (Geany) and I changed the HTML’s content-type to UTF-8 and had Geany change the encoding of the file to UTF-8 and when I view that it looks fine (no diamonds). I found this page:
http://emma.sourceforge.net/reference/ch03s02.html
that says:

Property: report.out.encoding
Default: report.out.encoding defaults to the JRE file.encoding system property and is overridden for the HTML and XML report types:
report.html.out.encoding: ISO-8859-1
report.xml.out.encoding: UTF-8

but either it doesn’t work or I haven’t stumbled on the correct incantation to get it to work.

I have tried adding to the ANT file (in numerous places in my build.xml):

<property name="emma.report.html.out.encoding" value="UTF-8" />
<property name="report.html.out.encoding" value="UTF-8" />

I tried adding

report.html.out.encoding=UTF-8
emma.report.html.out.encoding=UTF-8

to a properties file and changed the emma run (within ant) to read it (I don’t have the example XML handy now since it didn’t work and I removed it).

I added

<jvmarg value="-Demma.report.html.out.encoding=UTF-8" />

to the ant build file right under another emma setting in my build.xml.

I tried running Tomcat with both

-Demma.report.html.out.encoding=UTF-8
and
-Dreport.html.out.encoding=UTF-8

and finally, I tried running the jenkins.war file with both

java -Demma.report.html.out.encoding=UTF-8 -jar jenkins.war
and
java -Dreport.html.out.encoding=UTF-8 -jar jenkins.war

and none of these worked.

Any ideas?

  • 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-13T02:00:04+00:00Added an answer on June 13, 2026 at 2:00 am

    Well, I finally got it work… I tried a bunch of things all at once and one of them worked. Then I started removing them one by one. This is what worked…

    In my ant built file, in the emma task (mine starts with

    <emma enabled="${emma.enabled}" >
    

    I added this as the first line of the task:

    <property name="report.html.out.encoding" value="UTF-8" />
    

    That’s it. By doing this, the Emma reports served up by the standalone Jenkins server are now encoded in UTF-8 and don’t have the nasty diamond question marks for spaces.

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

Sidebar

Related Questions

I have a jquery bug and I've been looking for hours now, I can't
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.
I have a French site that I want to parse, but am running into
This could be a duplicate question, but I have no idea what search terms
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I don't have much knowledge about the IPv6 protocol, so sorry if the question
I am trying to loop through a bunch of documents I have to put

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.