- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-02-2014 12:21 PM
What happens if you urlencode the url before the call?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-02-2014 12:21 PM
What happens if you urlencode the url before the call?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā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
