matthiasblaesing opened a new pull request, #9748: URL: https://github.com/apache/netbeans/pull/9748
Traditionally property files for Java used Latin1/ASCII encoding. Characters outside the Latin1-Range had to be encoded as unicode escapes. The Euro-Sign for example had to be written as \u20ac. Since JDK 9 ResourceBundle defaults to UTF-8 for reading property files, rendering escape codes useless. This aligns NetBeans with other editors, that never got the comfort of transparent UniCode input <-> escape encoding. It was always possible to switch between native encoding and using escapes on a per file basis, but for large codebases this is a tedious process: <img width="406" height="202" alt="grafik" src="https://github.com/user-attachments/assets/b084aec8-fda5-46fc-bc7d-b751cf41fba6" /> To support mixed setups, the encoding variant to use can now be configured in the "Editor" -> "Formatting" options. This can be done in the options dialog globally <img width="806" height="668" alt="grafik" src="https://github.com/user-attachments/assets/fc1dc5a5-7700-44a5-bbb9-20e54457bc2b" /> and in the project dialog on a per project basis: <img width="1000" height="594" alt="grafik" src="https://github.com/user-attachments/assets/f327de94-bf4e-48be-be8d-a0923780ea42" /> Closes: #4351 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
