01-02-2014 12:13 PM
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?
01-02-2014 12:21 PM
What happens if you urlencode the url before the call?
01-02-2014 12:21 PM
What happens if you urlencode the url before the call?
01-02-2014 12:30 PM
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
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.