Crash plantuml with unknown charset

0 votes
asked Jul 14 in Bug by albert (2,540 points)

When using the command:

java -jar C:\Downloads\plantuml\plantuml_last\plantuml.jar french.pu  -charset UTF-8

the diagram is rendered properly.

When using an unknown charset plantuml crashes, e.g.:

java -jar C:\Downloads\plantuml\plantuml_last\plantuml.jar french.pu  -charset UTF

crashes with:

java.io.UnsupportedEncodingException: UTF
        at sun.nio.cs.StreamDecoder.forInputStreamReader(Unknown Source)
        at java.io.InputStreamReader.<init>(Unknown Source)
        at net.sourceforge.plantuml.SourceFileReaderAbstract.getReader(SourceFileReaderAbstract.java:91)
        at net.sourceforge.plantuml.SourceFileReader.<init>(SourceFileReader.java:86)
        at net.sourceforge.plantuml.Run.manageFileInternal(Run.java:482)
        at net.sourceforge.plantuml.Run.processArgs(Run.java:404)
        at net.sourceforge.plantuml.Run.manageAllFiles(Run.java:372)
        at net.sourceforge.plantuml.Run.main(Run.java:188)
No diagram found

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...