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

Use UTF8 property files #310

Open
twagoo opened this issue Sep 18, 2020 · 0 comments
Open

Use UTF8 property files #310

twagoo opened this issue Sep 18, 2020 · 0 comments
Milestone

Comments

@twagoo
Copy link
Member

twagoo commented Sep 18, 2020

Replace all .properties files for string resources with .utf8.properties, which should make internationalisation a lot easier.

Java uses the standard character set ISO 8859-11 to encode text files like properties files. Unfortunately ISO 8859-1 does not support most of the extra-European languages like Chinese or Japanese. The only way to use properties files with such languages is to use escaped Unicode characters, but this leads to not human-readable files. For example if we wanted to write the word 'website' in simplified Chinese (the ideograms are 网站) we should write the Unicode characters \u7F51\u7AD9. For this reason ISO 8859-11 is being replaced with another Unicode-compliant character encoding called UTF-8. Text files created with this encoding can contain Unicode symbols in plain format. Wicket provides a useful convention to use properties file encoded with UTF-8. We just have to add prefix .utf8. to file extension (i.e. .utf8.properties).

https://ci.apache.org/projects/wicket/guide/8.x/single.html#_using_utf_8_for_resource_bundles

@twagoo twagoo added this to the VLO 4.10 milestone Sep 18, 2020
@twagoo twagoo modified the milestones: VLO 4.10, VLO 5.0 Apr 22, 2021
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

No branches or pull requests

1 participant