access documents with accented names through rest api

Hi, I'm trying to retrieve documents by path using rest api v1 but how to retrieve documents with accented characters in names ? I only get errors returned so far

In below attempts, I'm trying to retrieve children of document name “Acquéreurs” :

$ curl -X GET -u Administrator:Administrator -H "Content-Type: application/json; charset=utf-8" http://localhost:8080/nuxeo/api/v1/path/default-domain/workspaces/Acquéreurs/@children
No such document: No such document: /default-domain/workspaces/Acquéreurs


$ curl -X GET -u Administrator:Administrator -H "Content-Type: application/json; charset=utf-8" http://localhost:8080/nuxeo/api/v1/path/default-domain/workspaces/Acqu%C3%A9reurs/@children
No such document: No such document: /default-domain/workspaces/Acqu├â┬®reurs


$ curl -X GET -u Administrator:Administrator -H "Content-Type: application/json; charset=utf-8" http://localhost:8080/nuxeo/api/v1/path/default-domain/workspaces/Acquereurs/@children
No such document: No such document: /default-domain/workspaces/Acquereurs

Any Hint?

0 votes

2 answers

1177 views

ANSWER



What happens if you urlencode the url before the call?

0 votes



I thought I did it but it turns that I used a faulty url encoder at first (the second line in my attempts). Using a correct encoder, “é” became “%E9” as it should and it works! Many thanks for pointing me in correct direction

Thomas

0 votes