FileUtils read to String breaks encoding

Description

FileUtils do inefficiently read files to String. In some rare situations encoding may be destroyed as buffered reader usage in this class encodes intermediately. We have to read the whole file to memory as byte Array and perform encoding charset on whole file content instead.

Environment

None

Status

Assignee

Christoph Deppisch

Reporter

Christoph Deppisch

Labels

None

Epic Name <span class="error">&#91;deprecated, this field is no longer being used&#93;</span>

None

External issue ID

None

Components

Fix versions

Affects versions

1.2
1.1
1.3

Priority

Major