Need to see if your shared folder is taking up space on your dropbox 👨‍💻? Find out how to check here.

Forum Discussion

zeff's avatar
zeff
New member | Level 1
11 years ago

Correct way to handle Hebrew filenames

Hello guys,

I am looking for a proper way to handle hebrew filenames with the Python API.

According to the documentation - Any string passed through your API should be normalized to UNICODE and encoded to UTF-8.
When using a command line with hebrew folders/filenames (Code page 862) some unexcpected things happens.

I use the following code to convert the characters from the command line to UTF-8 before passing it to the API:

normalize('NFC', string).encode('utf-8')

second parameter, string, is what I get from parsing the metadata from the DropboxClient instance.

Any ideas will be appreciated.

Thanks in advance.

1 Reply

Replies have been turned off for this discussion
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    11 years ago

    Can you post some sample code, sample strings, and resulting output/any exceptions so we can take a look? Thanks in advance!

About Dropbox API Support & Feedback

Node avatar for 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!