We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Artem K.
10 years agoNew member | Level 1
International characters in filenames
Hi,
I am migrating to V2 of REST API and I am having problems with endpoints that require passing arguments using "Dropbox-API-Arg" header (for example, https://content.dropboxapi.com/2/files/downl...
Greg-DB
Dropbox Community Moderator
9 years agoThis may depend on your setup, but are you sure you need the double '/'? Have you tried it without it? i.e.,
"Dropbox-API-Arg: {"path":"/blackdog/\u4e2d\u6587prd.docx"}"
In any case, we recommend either using the official Dropbox Java SDK, or having a library do the encoding for you. E.g., for Java, using Jackson, it would look like:
JsonFactory f = ... JsonGenerator g = f.createGenerator(...); g.setHighestNonEscapedChar(0x7E);
jianwen
9 years agoExplorer | Level 3
I debuged Dropbox java sdk,and the header Dropbox-API-Arg value is the same as mine
"Dropbox-API-Arg: {"path":"/blackdog/\\u4E2D\\u6587prd.docx"}[\r][\n]"
but i got 409 path/not_found/..,dropbox sdk get right response,i don not why.
- Greg-DB9 years ago
Dropbox Community Moderator
It looks like you opened a new thread for this, so we'll follow up there:
https://www.dropboxforum.com/t5/API-support/HTTP-API-Path-contain-Chinese-response-409-path-not-found/m-p/240031#M13346
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!