Skip to content

UTF-8 encoded content not output correctly by PropertiesFileTransformer #818

@scottsteen

Description

@scottsteen

Shadow Version

7.1.2

Gradle Version

7.6

Expected Behavior

UTF-8 content in transformed properties files should be written into the jar as UTF-8 also.

Ideally, the buildscript can configure the Charset of the target files.

Actual Behavior

Content is encoded in ISO_8859_1.

Example

A properties files containing Chinese characters

foo=传傳磨宿说説

Is written into the jar as

foo=传�磨宿说説

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