diff --git a/src/main/java/com/structurizr/cli/AbstractCommand.java b/src/main/java/com/structurizr/cli/AbstractCommand.java index 887db9a..f3e27b7 100644 --- a/src/main/java/com/structurizr/cli/AbstractCommand.java +++ b/src/main/java/com/structurizr/cli/AbstractCommand.java @@ -13,6 +13,7 @@ import org.apache.hc.core5.http.io.entity.EntityUtils; import java.io.File; +import java.nio.charset.Charset; public abstract class AbstractCommand { @@ -64,6 +65,7 @@ protected Workspace loadWorkspace(String workspacePathAsString) throws Exception } else { StructurizrDslParser structurizrDslParser = new StructurizrDslParser(); + structurizrDslParser.setCharacterEncoding(Charset.defaultCharset()); if (workspacePathAsString.startsWith("http://") || workspacePathAsString.startsWith("https://")) { String dsl = readFromUrl(workspacePathAsString);