Uploaded image for project: 'FishEye'
  1. FishEye
  2. FE-6908

Set sun.jnu.encoding to UTF-8 by default

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Answered
    • Icon: Low Low
    • N/A
    • 4.4.1
    • None

      Summary

      sun.jnu.encoding is not explicitly defined in the startup of the FishEye JVM, and so it's possible for this to be set to an unexpected value in a customer's environment which causes issues with extended UTF-8 characters, e.g. working with Chinese text in a file

      Steps to Reproduce

      1. Have your environment set up with sun.jnu.encoding as GBK by default
      2. Create a file containing special characters

      Expected Results

      Even if your JVM is configured like that by default, FishEye server should force it to be UTF-8.

      Actual Results

      Chinese text does not appear correctly in FishEye/Crucible.

      Workaround

      Set sun.jnu.encoding explicitly to UTF-8 in the $FISHEYE_OPTS Environment variables:

      -Dsun.jnu.encoding=UTF-8
      

              Unassigned Unassigned
              ccurti Caterina Curti
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: