Skip to content

Use UTF-8 and not the system's default character encoding when decoding Strings #346

@mkr

Description

@mkr

We have code that uses Java APIs that rely on the system's default charset to decode Strings from byte streams, i.e. java.lang.String#getBytes() and java.io.InputStreamReader<init>(InputStream in). This makes it impossible, e.g. to configure rules with a characters that are not supported by the system's default charset, e.g. rules with non-ASCII characters on systems with US-ASCII default charset. We should use UTF-8 throughout.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions