devonfw / solicitor

Solicitor is a tool enabling management of licenses of software dependencies
Apache License 2.0
22 stars 18 forks source link

VelocityWriter should enforce UTF-8 encoding when writing results #285

Closed ohecker closed 2 months ago

ohecker commented 2 months ago

When creating output with the VelocityWriter the template is assumed to be encoded as UTF-8 (see https://github.com/devonfw/solicitor/blob/master/core/src/main/java/com/devonfw/tools/solicitor/common/IOHelper.java#L33-L47).

However when writing the result output the used encoding depends on the default settings of the host that Solicitor runs on.

When writing output with the VelocityWriter the coding should be always UTF-8.