eclipse-jdt / eclipse-jdt/eclipse.jdt.core

Change Java properties to UTF-8

Open
#1,603 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
237
Forks
195
Avg merge
1d 12h
Merged PRs (30d)
47

Description

jdt.core defines the content type and encoding for Java properties files, which is ISO-8859-1. However, since Java 9 UTF-8 is a valid encoding for properties: https://openjdk.org/jeps/226
I want to suggest changing the default encoding from ISO-8859-1 to UTF-8. I'm not sure if it would be possible to have a content describer implementation to dynamically decide this based on the Java compiler settings of a project.

This is where you find it in the UI later:
![grafik](https://github.com/eclipse-jdt/eclipse.jdt.core/assets/406876/7278fcac-8f02-4bbb-a421-26e5a40663e3)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.