structurizr / cli

A command line utility for Structurizr.
https://docs.structurizr.com/cli
Apache License 2.0
491 stars 75 forks source link

export plantuml - encoding behaviour #38

Closed nemeros closed 3 years ago

nemeros commented 3 years ago

here a basic exemple for reproducing :

workspace "test grouping" {
    model = {
        softwareSystem = softwareSystem "un système"
    }
}

I'm on windows my file is encoded in utf-8 and when i generate the plantuml export, the caracter "é" is re-encoded in the windows 1252 encoding.

If i encode my base file in windows 1252, then the cli crash with the exception :

- loading workspace from DSL     
com.structurizr.dsl.StructurizrDslParserException: Input length = 1
        at com.structurizr.dsl.StructurizrDslParser.parse(StructurizrDslParser.java:107)        
        at com.structurizr.cli.ExportCommand.run(ExportCommand.java:102)