jenkinsci / stapler

Stapler web framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use `PropertyResourceBundle` to support UTF-8 on Java 9+

timja opened this issue · comments

What feature do you want to see added?

It's been a long standing issue that Jenkins properties files are not UTF-8, many issues have been caused for this and it has a poor developer experience currently.

From @basil

jenkinsci/stapler@2905144/jelly/src/main/java/org/kohsuke/stapler/jelly/ResourceBundle.java#L155-L165= could be converted to use PropertyResourceBundle, which (as of Java 9+, which we will begin requiring in September) first loads property files in UTF-8, falling back to ISO-8859-1 otherwise.

see jenkinsci/design-library-plugin#41 (comment)

Upstream changes

No response

I have no plans to work on this. Pull requests are welcome.