Format for POSTing to plantuml server

0 votes
asked Oct 2, 2023 in Question / help by Shawn

Hi,

I am having trouble POSTing utf-8 to a plantuml server. If I use GET it works OK, but POST is improperly encoding text. For example, a POST with Queen’s renders properly with a GET but renders as Queen’s with a POST. 

The python code making the call is

requests.post(url, data=uml.encode('utf-8'))

Is there a specific format for a POST body?

@startuml
version
@enduml

returns

PlantUML version 1.2023.10(Wed Jul 12 15:54:07 UTC 2023)

(GPL source distribution)

Dot version: dot - graphviz version 2.43.0 (0)

Installation seems OK. File generation OK

Java Runtime: OpenJDK Runtime Environment

JVM: OpenJDK 64-Bit Server VM

Default Encoding: UTF-8

Language: en

Country: null

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.
...