Skip to content

Inconsistent use of Charset when getting bytes from String-like content #1558

@shanman190

Description

@shanman190

When reading a file or getting the bytes of a String value, there is inconsistent use of getBytes() and getBytes(Charset). As a result this means that the JVMs default Charset is used for the getBytes() case which is not consistent between all JVMs (<Java 18). To put this explicitly on Windows Charset=cp1252 (English) while on macOS and *nix Charset=UTF-8.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions