Hello,
I'm trying to create multiple versions for a migration from another tool to JIRA.
Versions data are in French language and contain accents, that are difficult to upload in JIRA using Curl command lines and JSON format, in a Windows environment.
Can someone point me to the correct way to write that?
Here is what I have tried :
curl -X POST -H "content-type: application/json" "https://user:passwd@domain.jira.com/rest/api/latest/version" -d "{\"description\": \"version intéressante\",\"name\": \"Version numéro 1\",\"archived\":false,\"released\":false,\"project\":\"PRJ1\"}"
and another one:
curl -X POST -H "content-type: application/json;charset=UTF-8" "https://user:passwd@domain.jira.com/rest/api/latest/version" -d "{\"description\": \"version intéressante\",\"name\": \"Version numéro 1\",\"archived\":false,\"released\":false,\"project\":\"PRJ1\"}"
Both give me the same result:
{"errorMessages":["Invalid UTF-8 middle byte 0x44\n at [Source: org.apache.catalina.connector.CoyoteInputStream@7d22ee91; line: 1, column: 24]"]}
Thanks for any insight you can give me.
Emmanuel