TelluIoT / ThingML

The ThingML modelling language
https://github.com/TelluIoT/ThingML
Apache License 2.0
103 stars 32 forks source link

How to output unicode characters in generated code? #273

Closed brice-morin closed 5 years ago

brice-morin commented 5 years ago

For the UML compiler, I'd like to generate some unicode characters (this is very well supported by plantUML), so as to give more information in the diagrams in a nice way (e.g. using ▶ to denote a received message). I tried different ways, but all I can get is ? instead of ▶...

nharrand commented 5 years ago

How about:

FileUtils.write(new File("test"), " ▶ ",Charset.forName("UNICODE"));
    <dependency>
      <groupId>commons-io</groupId>
      <artifactId>commons-io</artifactId>
      <version>2.5</version>
    </dependency>

?