We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Klaus A.
9 years agoHelpful | Level 5
Umlauts in file names
Hi, I am using the v2 API for http. What I found is that if a file or folder name contains a special character, like a German Umlaut like ä, I get a 400 error on upload and download. Is this a bug?
During download the response text is "Error in call to API function "files/download": HTTP header "Dropbox-API-Arg": could not decode input as JSON".
During upload the response text is "Error in call to API function "files/upload": HTTP header "Dropbox-API-Arg": could not decode input as JSON".
Seems like there's a bug in the JSON.parse() function on DropBox's side. The same JSON stringified text with an umlaut in the file name will parse just fine in the browsers I tested.
11 Replies
- Greg-DB8 years ago
Dropbox Community Moderator
Abhishek3881000 Here's an example of how you might do this in Java, using Jackson:
JsonFactory f = ... JsonGenerator g = f.createGenerator(...); g.setHighestNonEscapedChar(0x7E);
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!