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

          Mikhail Davydov created issue -
          mcrooney made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 150716 ] New: JNJira + In-Review [ 193642 ]
          Richard Bywater made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

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

              Created:
              Updated:
              Resolved: