Open HansBug opened 1 year ago
I tried your example directly with the lastest release (v1.2023.6) from plantuml (without the server part) as descript here and got the same result. Hence, I'm confident, that this isn't a plantuml-server but a plantuml bug. Maybe it is more promising to open/share the issue there?
@HeinrichAD Fine, I opened an issue there https://github.com/plantuml/plantuml/issues/1426
I am maintaining a Python-based Plantuml SDK and CLI library called plantumlcli. Currently, this issue can be temporarily bypassed by installing cairosvg (which obtains a normal SVG image and converts it to PDF).
I tried to look a little bit into the problem and created a test repository: https://github.com/HeinrichAD/java-svg2pdf-issue
I have tried a few approaches, but unfortunately have not found a (quick/simple) solution.
As mentioned above, the latest version of the PlantUML server (version
23731c11bcf6
, orjetty-v1.2023.6
) fails to display Chinese characters correctly when rendering UML code containing Chinese characters into PDF format.Here is an example code
It should be rendered like this (as it in PNG, SVG or even ASCII art format):
But it is actually rendered like this in pdf:
PS: I have just tested and encountered the same issue with the
tomcat
version image as well.