XML Encoder ignores setting of OmitXMLDeclaration and Indention

Description

Calling
Encoder.setOmitXMLDeclaration(false) sets omitXMLDeclaration = true
Encoder.setIndenting(false) sets indenting = true

This results in GeoServer sending WFS exception reports having no xml declaration for example. So the XML contains no charset information, which causes encoding problems.

Environment

None

Status

Assignee

Unassigned

Reporter

Andreas W

Triage

None

Components

Fix versions

Affects versions

18.1

Priority

Medium
Configure