Skip to content

API get error with accented characters in POST requests.

Using the GitLab API to create issue and note, I get error when field (title, description, body…) contains accented characters (éàç…). Even using URL encoding (é -> %E9):

%> curl -X POST -H "PRIVATE-TOKEN: XXXXX" "https://gitlab.com/api/v3/projects/12688/issues?title=Test%E9Title2&description=TestDescription&created_at=2016-07-13T03:45:40Z"
{"message":"500 Internal Server Error"}
%> ~/C/Puck/Gitlab 23 > curl -X POST -H "PRIVATE-TOKEN: XXXXX" "https://gitlab.com/api/v3/projects/12688/issues?title=TestéTitle2&description=TestDescription&created_at=2016-07-13T03:45:40Z"
<html><body><h1>400 Bad request</h1>
Your browser sent an invalid request.
</body></html>

Version: GitLab Enterprise Edition 8.10.0-rc8-ee 0710a46f

Is GitLab API compatible with accented characters?