<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Correct way to handle Hebrew filenames in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Correct-way-to-handle-Hebrew-filenames/m-p/53524#M1640</link>
    <description>&lt;P&gt;Hello guys,&lt;/P&gt;

&lt;P&gt;I am looking for a proper way to handle hebrew filenames with the Python API.&lt;/P&gt;

&lt;P&gt;According to the documentation - Any string passed through your API should be normalized to UNICODE and encoded to UTF-8.&lt;BR /&gt;
When using a command line with hebrew folders/filenames (Code page 862) some unexcpected things happens. &lt;/P&gt;

&lt;P&gt;I use the following code to convert the characters from the command line to UTF-8 before passing it to the API:&lt;/P&gt;

&lt;P&gt;normalize('NFC', string).encode('utf-8')&lt;/P&gt;

&lt;P&gt;second parameter, string, is what I get from parsing the metadata from the DropboxClient instance.&lt;/P&gt;

&lt;P&gt;Any ideas will be appreciated.&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:43:24 GMT</pubDate>
    <dc:creator>zeff</dc:creator>
    <dc:date>2019-05-29T09:43:24Z</dc:date>
    <item>
      <title>Correct way to handle Hebrew filenames</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Correct-way-to-handle-Hebrew-filenames/m-p/53524#M1640</link>
      <description>&lt;P&gt;Hello guys,&lt;/P&gt;

&lt;P&gt;I am looking for a proper way to handle hebrew filenames with the Python API.&lt;/P&gt;

&lt;P&gt;According to the documentation - Any string passed through your API should be normalized to UNICODE and encoded to UTF-8.&lt;BR /&gt;
When using a command line with hebrew folders/filenames (Code page 862) some unexcpected things happens. &lt;/P&gt;

&lt;P&gt;I use the following code to convert the characters from the command line to UTF-8 before passing it to the API:&lt;/P&gt;

&lt;P&gt;normalize('NFC', string).encode('utf-8')&lt;/P&gt;

&lt;P&gt;second parameter, string, is what I get from parsing the metadata from the DropboxClient instance.&lt;/P&gt;

&lt;P&gt;Any ideas will be appreciated.&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:43:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Correct-way-to-handle-Hebrew-filenames/m-p/53524#M1640</guid>
      <dc:creator>zeff</dc:creator>
      <dc:date>2019-05-29T09:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Correct way to handle Hebrew filenames</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Correct-way-to-handle-Hebrew-filenames/m-p/53525#M1641</link>
      <description>&lt;P&gt;Can you post some sample code, sample strings, and resulting output/any exceptions so we can take a look? Thanks in advance! &lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2015 01:48:57 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Correct-way-to-handle-Hebrew-filenames/m-p/53525#M1641</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-04-28T01:48:57Z</dc:date>
    </item>
  </channel>
</rss>

