cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
What’s new: end-to-end encryption, Replay and Dash updates. Find out more about these updates, new features and more here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Correct way to handle Hebrew filenames

Correct way to handle Hebrew filenames

zeff
New member | Level 1

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 1

Greg-DB
Dropbox Staff

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

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?