You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Michael Bien (Jira)" <ji...@apache.org> on 2024/07/09 10:36:00 UTC

[jira] [Closed] (NETBEANS-5181) NbBundle only accepts ISO-8859-1 while UTF-8 is default since JDK9

     [ https://issues.apache.org/jira/browse/NETBEANS-5181?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Bien closed NETBEANS-5181.
----------------------------------
    Fix Version/s: 12.3
       Resolution: Fixed

> NbBundle only accepts ISO-8859-1 while UTF-8 is default since JDK9
> ------------------------------------------------------------------
>
>                 Key: NETBEANS-5181
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-5181
>             Project: NetBeans
>          Issue Type: Improvement
>          Components: nblocalization - Code, platform - Filesystems, platform - Other
>    Affects Versions: 9.0, 10.0, 11.0, 12.2
>         Environment: All
>            Reporter: Jerome Lelasseux
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 12.3
>
>          Time Spent: 3h 20m
>  Remaining Estimate: 0h
>
> 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...
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists