Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OF-2889: i18n properties: don't convert from UTF-8 to Latin1 #2559

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

stokito
Copy link
Contributor

@stokito stokito commented Oct 17, 2024

https://igniterealtime.atlassian.net/jira/software/c/projects/OF/issues/OF-2889

Currently the properties files are stored in the UTF-8 and then converted to escaped ISO 8859-1 encoding because use the UTF8 wasn’t properly supported prior Java 9.

Now this is not needed and we can simplify the build.

@stokito stokito marked this pull request as ready for review October 17, 2024 16:45
@Fishbowler
Copy link
Member

Rebased.

Java has trouble reading translations from UTF-8 files. To work around that,
this plugin copies the i18n files from source to the build directory, to be
modified later by the native2ascii-maven-plugin.
This plugin copies the i18n files from source to the build directory.
-->
<artifactId>maven-resources-plugin</artifactId>
<version>3.1.0</version>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we can eliminate the step to copy resources but not sure if this doesn't broke anything

Copy link
Member

@Fishbowler Fishbowler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Read but not tested. LGTM. Have checked out https://stackoverflow.com/questions/4659929/how-to-use-utf-8-in-resource-properties-with-resourcebundle and the reasoning stacks up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants