JDK-8229005 : Transformer treats invalid encoding as a warning
  • Type: Bug
  • Component: xml
  • Sub-Component: javax.xml.transform
  • Affected Version: 25
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2019-08-01
  • Updated: 2025-05-30
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Relates :  
Description
The Transformer issues a warning upon getting an invalid encoding, and moves on to use the default (UTF-8). It had been an issue for java.util.Properties since it required an UnsupportedEncodingException to be thrown. Since then, Properties has resolved the issue outside JAXP. 

For JAXP, this issue remains. At some point, we may want to change the behavior to throw an Exception.