JDK-8144465 : Properties File default encoding
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.util:i18n
  • Affected Version: 8u66
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_7
  • CPU: x86_64
  • Submitted: 2015-12-01
  • Updated: 2015-12-02
  • Resolved: 2015-12-02
Related Reports
Duplicate :  
Description
A DESCRIPTION OF THE REQUEST :
properties file default encoding is set to ISO-8859-1. I know that I can supply my own input stream with any encoding. But this is cumbersome especially when you work with products and eclipse does not let you use any other encoding. Please fix this. Please make UTF-8 encoding default. I think this has been carried over for too long.

JUSTIFICATION :
The entire web runs on utf-8, internationalization is a huge problem with the manual step always converting to unicode escapes. Please fix this ASAP and release bug patches for older releases.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Accept UTF-8 encoding.
ACTUAL -
accept utf-8

---------- BEGIN SOURCE ----------
accept utf-8
---------- END SOURCE ----------

CUSTOMER SUBMITTED WORKAROUND :
accept utf-8


Comments
UTF-8 based properties files have been implemented in JDK9.
02-12-2015