Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-5181

NbBundle only accepts ISO-8859-1 while UTF-8 is default since JDK9

    XMLWordPrintableJSON

Details

    Description

      Since JDK9 default encoding for .properties files (resource bundles) is UTF-8. JDK's ResourceBundle.getBundle().getString() automatically handles UTF-8 or ISO-8859-1 files via PropertyResourceBundle.

      But NbBundle methods always read resource bundles as ISO-8859-1. Many translation platforms around  produce UTF-8 files. Adapting the build process to add a transcoding step is not so easy and introduces new problems.

      The NB platform code should be updated to have by default the same behavior as the current JDKs.

      I'll try to come up with a patch...

       

       

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jjazzboss Jerome Lelasseux
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 3h 20m
                  3h 20m