Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-19268

html publisher plugin overrides report encoding with iso-8859-1

      See comments in http://wiki.hudson-ci.org/display/HUDSON/HTML+Publisher+Plugin:

      Question
      =====
      htmlpublisher will modify the page encoding attribute of my program-generated HTML file from utf-8 to iso-8859-1~
      That is from <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> to <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" >
      Hence, my reports are filled with a bunch of gibberish instead of Chinese characters~
      I wonder if anyone knows the solution here?
      =============
      Answer:
      In this directory on my machine :home/hudson/.hudson/plugins/htmlpublisher/WEB-INF/classes/htmlpublisher/HtmlPublisher
      There is this header.html, which is the default header attached to my code-generated html files.
      Modify the charset and xml:lang="en" of the header.html~ the problem will be solved.

      Though they are dated back to 2011, they're still actual:
      Jenkings overrides encoding of the report with ISO-8859-1.

      Please,

      • either make encoding configurable somewhere
      • or don't set encoding at all
      • or use, at least, utf-8 instead of ISO-8859-1

      Thanks!

          [JENKINS-19268] html publisher plugin overrides report encoding with iso-8859-1

          Code changed in jenkins
          User: Michael Rooney
          Path:
          src/main/resources/htmlpublisher/HtmlPublisher/header.html
          http://jenkins-ci.org/commit/htmlpublisher-plugin/b063aeff3c2ef64c48c1f5eb3176b78904040add
          Log:
          don't specify charset to fix JENKINS-19268

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Michael Rooney Path: src/main/resources/htmlpublisher/HtmlPublisher/header.html http://jenkins-ci.org/commit/htmlpublisher-plugin/b063aeff3c2ef64c48c1f5eb3176b78904040add Log: don't specify charset to fix JENKINS-19268

          mcrooney added a comment - - edited

          Thanks for the report, sorry about this, it should be fixed in version 1.3 of the plugin (removed specifying iso-8859-1), released today. Let me know if you run into any problems!

          mcrooney added a comment - - edited Thanks for the report, sorry about this, it should be fixed in version 1.3 of the plugin (removed specifying iso-8859-1), released today. Let me know if you run into any problems!

            mcrooney mcrooney
            mike_davydov Mikhail Davydov
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: