hierynomus / license-gradle-plugin

Manage your license(s)
http://www.javadude.nl
Other
406 stars 114 forks source link

Unicode Characters in File Mangled by license-gradle-plugin #146

Open brcolow opened 6 years ago

brcolow commented 6 years ago

Hello,

Given a Java file that contains any license header, and contains a comment that has the following "subscript" Unicode characters:

// (x₁, y₁)

Running licenseFormat on that file mangles the "subscript" characters thusly:

// (xâ‚?, yâ‚?)

Using git diff, one can see the bytes change from:

(x<E2><82><81>, y<E2><82><81>)

to:

(x<E2><82>?, y<E2><82>?)

The file was encoded in UTF-8.

This is quite a minor issue, but I thought I'd bring it up just in case it isn't intended behavior.

Thanks very much.