Skip to content

Allow StaxEventItemReader to auto-detect the input file encoding #4101

Closed
@jdomigon

Description

@jdomigon

Bug description
StaxEventItemReader uses platform default encoding to read XML files.

Environment
Spring-batch version 4.3.0. Related to #807

Steps to reproduce
Just try to parse an XML file with a declared encoding different to the platform encoding.

Expected behavior
Encoding field in StaxEventItemReader should default to null, so that the parser has the opportunity to autodetect the file encoding.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions