I need to POST form data using cURL, and one of the fields contains accented letters. Here is the command I am using (it is a command to create a folder on an Alfresco server):
curl -X POST http://localhost/alfresco/api/-default-/public/cmis/versions/1.1/browser/root/Sites/share/documentLibrary/files -H 'authorization: Basic XXXXXXXXXXXXX' -H 'content-type: multipart/form-data' -F cmisaction=createFolder -F 'propertyId[0]=cmis:objectTypeId' -F 'propertyValue[0]=cmis:folder' -F 'propertyId[1]=cmis:name' -F "propertyValue[1]=L'AGO...rùèàì" -F succinct=true
But accented letters of propertyValue[1] field are not correctly interpreted, here is the part of the server response that reports the received parameter:
.... "cmis:name":"L'AGO...rùèà ì" ....
And on Alfresco system the folder is created with wrong name. Is there a way to correctly encode accented letters in a 'content-type: multipart/form-data' POST?