diff --git a/pmd-cli/src/main/java/net/sourceforge/pmd/cli/commands/internal/PmdCommand.java b/pmd-cli/src/main/java/net/sourceforge/pmd/cli/commands/internal/PmdCommand.java index a5add7ede1..ecc59f7528 100644 --- a/pmd-cli/src/main/java/net/sourceforge/pmd/cli/commands/internal/PmdCommand.java +++ b/pmd-cli/src/main/java/net/sourceforge/pmd/cli/commands/internal/PmdCommand.java @@ -284,6 +284,7 @@ public class PmdCommand extends AbstractPmdSubcommand { configuration.setInputUri(uri != null ? uri.toString() : null); configuration.setReportFormat(format); configuration.setDebug(debug); + configuration.setSourceEncoding(encoding); configuration.setMinimumPriority(minimumPriority); configuration.setReportFile(reportFile != null ? reportFile.toString() : null); configuration.setReportProperties(properties);