/rest/api/3/issue/{issue-key}/attachments, upload file with a Chinese name, name turn to messy code
I try this with Unirest http client
String imageAPIEndpoint = "https://mydomain.atlassian.net/rest/api/3/issue/key-123/attachments",
File f = new File("D:\\中文.png");
InputStream in =new FileInputStream(f);
String fileName = f.getName();
HttpResponse<JsonNode> uploadResponse = Unirest.post(imaggaAPIEndpoint)
.header("X-Atlassian-Token","no-check")
.header("Accept","application/json")
.basicAuth("myCount","token")
.field("file",in,"abc中文")
.asJson();
200
[{"filename":"abc??","size":50399,"author":{"accountId":
abc中文 turn to abc?? ( or other messy code)