Example on how to encode For PlantUML server?

0 votes
asked Jan 24, 2022 in Question / help by rkrug (420 points)
Hi

How can I encode a diagram into the encoding needed for the PlantUML Server? I know the site https://plantuml.com/text-encoding but have no idea how I can encode using the `close to base 64`.

I am using R, but any other code which is doing the transformation (which I could translate) would also help.

1 Answer

0 votes
answered Jan 24, 2022 by plantuml (294,960 points)
Sure, you can look at encode64() function which is there:

https://plantuml.com/code-javascript-synchronous
https://plantuml.com/code-php

Tell us if it helps!
We will be glad to publish the R version of the encoding if you want.
commented Jan 24, 2022 by rkrug (420 points)
Thanks. That helps. Could you give an example of the result from each function when starting with a particular string? This would help me debugging, as I have some typing issues...
commented Sep 13, 2022 by rkrug (420 points)
Deleted Deleted
...