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

Console output cannot correctly handle Unicode output

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Not A Defect
    • Component/s: core
    • Labels:
      None
    • Environment:
      Windows 7 x64 SP1
    • Similar Issues:

      Description

      Any non-ASCII characters in the output of a build script (batch script, calling a PowerShell script calling MSBuild - which are fully unicode) are not displayed in the web console output or in generated e-mails. Instead, that little box with the inverted question mark appears, which usually marks an encoding error. It seems that Jenkins converts the script output from Unicode to Windows1252 (or something similar) and then passes it on to something expecting UTF-8. In any way, since PowerShell and MSBuild generate Unicode output, there should not be any encoding issues or character set imcompatibilities at all. I'm not sure how good Java performs in this, though.

        Attachments

          Activity

          Hide
          danielbeck Daniel Beck added a comment -

          Probably just a misconfiguration of the Jenkins server. What is the output of /systemInfo web page?

          Show
          danielbeck Daniel Beck added a comment - Probably just a misconfiguration of the Jenkins server. What is the output of /systemInfo web page?
          Hide
          lonelypixel Yves Goergen added a comment -

          That's a lot of output. What values are you interested in?

          Sorry for the delay, I wasn't notified of the comment.

          Show
          lonelypixel Yves Goergen added a comment - That's a lot of output. What values are you interested in? Sorry for the delay, I wasn't notified of the comment.
          Hide
          danielbeck Daniel Beck added a comment -

          Those related to encoding. When in doubt, post all of it.

          Show
          danielbeck Daniel Beck added a comment - Those related to encoding. When in doubt, post all of it.
          Hide
          lonelypixel Yves Goergen added a comment -

          file.encoding Cp1252
          file.encoding.pkg sun.io
          sun.io.unicode.encoding UnicodeLittle
          sun.jnu.encoding Cp1252

          Show
          lonelypixel Yves Goergen added a comment - file.encoding Cp1252 file.encoding.pkg sun.io sun.io.unicode.encoding UnicodeLittle sun.jnu.encoding Cp1252
          Hide
          danielbeck Daniel Beck added a comment - - edited

          As expected a configuration issue. Use e.g. java -Dfile.encoding=UTF8 jenkins.war and everything will work as expected.

          Show
          danielbeck Daniel Beck added a comment - - edited As expected a configuration issue. Use e.g. java -Dfile.encoding=UTF8 jenkins.war and everything will work as expected.
          Hide
          lonelypixel Yves Goergen added a comment -

          How can I do that with the default installer for Windows? If the start command is wrong, that's a bug in the installer. UTF-8 is at least an uncommon default encoding for Windows. Windows uses either CP1252 or UTF-16. UTF-8 can be more found on Linux systems.

          Show
          lonelypixel Yves Goergen added a comment - How can I do that with the default installer for Windows? If the start command is wrong, that's a bug in the installer. UTF-8 is at least an uncommon default encoding for Windows. Windows uses either CP1252 or UTF-16. UTF-8 can be more found on Linux systems.

            People

            • Assignee:
              Unassigned
              Reporter:
              lonelypixel Yves Goergen
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: