cancel
Showing results for 
Search instead for 
Did you mean: 

access documents with accented names through rest api

Thomas_vdv
Champ in-the-making
Champ in-the-making

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?

1 ACCEPTED ANSWER

bruce_Grant
Elite Collaborator
Elite Collaborator

What happens if you urlencode the url before the call?

View answer in original post

2 REPLIES 2

bruce_Grant
Elite Collaborator
Elite Collaborator

What happens if you urlencode the url before the call?

Thomas_vdv
Champ in-the-making
Champ in-the-making

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

Getting started

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.