<?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 Re: Problem with upload API and character with accent in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problem-with-upload-API-and-character-with-accent/m-p/701795#M31272</link>
    <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1730558"&gt;@foggy748&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Unfortunately, Dropbox API doesn't support latest specifications for using unicode during json encoding. You have to use 7-bit json ASCII encoding (the previous specifications). All symbols that don't fit in 7 bits and all special symbols have to be tagged properly.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jul 2023 10:26:24 GMT</pubDate>
    <dc:creator>Здравко</dc:creator>
    <dc:date>2023-07-27T10:26:24Z</dc:date>
    <item>
      <title>Problem with upload API and character with accent</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problem-with-upload-API-and-character-with-accent/m-p/701767#M31271</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have some problème with the upload API. When my fichier contain accent, the API return a status 401 and when I change the character without the accent it works. But in french, we need the accent. I want to know if there is a solution for this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the moment I use unicode() for change&amp;nbsp;automatically characters that are problematic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code I use for uploading a file with the API:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;return await axios({
    url: url,
    method: 'post',
    data: metadata,
    headers: {
      'Authorization': 'Bearer ' + stockageInfo.token,
      'Content-Type': 'application/octet-stream',
      'Dropbox-API-Arg': JSON.stringify({
        path: dossierId + '/' + unidecode(titre) + '.' + ext,
        mode: 'overwrite'
      })
    }
  }).then((d) =&amp;gt; {
    return d.data.id
  }).catch((e) =&amp;gt; {
    // statements
    console.log(e)
    return null
  })&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 08:46:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problem-with-upload-API-and-character-with-accent/m-p/701767#M31271</guid>
      <dc:creator>foggy748</dc:creator>
      <dc:date>2023-07-27T08:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with upload API and character with accent</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problem-with-upload-API-and-character-with-accent/m-p/701795#M31272</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1730558"&gt;@foggy748&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Unfortunately, Dropbox API doesn't support latest specifications for using unicode during json encoding. You have to use 7-bit json ASCII encoding (the previous specifications). All symbols that don't fit in 7 bits and all special symbols have to be tagged properly.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 10:26:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problem-with-upload-API-and-character-with-accent/m-p/701795#M31272</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-07-27T10:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with upload API and character with accent</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problem-with-upload-API-and-character-with-accent/m-p/701826#M31273</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, if I understand transform this word "Définir" to "&lt;SPAN&gt;D\u00e9finir" works?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 12:53:50 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problem-with-upload-API-and-character-with-accent/m-p/701826#M31273</guid>
      <dc:creator>foggy748</dc:creator>
      <dc:date>2023-07-27T12:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with upload API and character with accent</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problem-with-upload-API-and-character-with-accent/m-p/701846#M31274</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1730558"&gt;@foggy748&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;So, if I understand transform this word "Définir" to "&lt;SPAN&gt;D\u00e9finir" works?&lt;/SPAN&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Correct. It should work, at least. Usually this is done automatic by most json libraries, when properly initialized.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add: To be sure that everything is correct, dump the output of JSON.stringify. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt; Take a look &lt;A title="Dropbox API Explorer • upload" href="https://dropbox.github.io/dropbox-api-v2-explorer/#files_upload" target="_blank" rel="noopener"&gt;here&lt;/A&gt; for prototyping the call.&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 14:21:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problem-with-upload-API-and-character-with-accent/m-p/701846#M31274</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-07-27T14:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with upload API and character with accent</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problem-with-upload-API-and-character-with-accent/m-p/701892#M31275</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1730558"&gt;@foggy748&lt;/a&gt; For reference, you can find &lt;A href="https://www.dropbox.com/developers/reference/json-encoding" target="_blank"&gt;documentation on how to encode header values here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 16:34:05 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problem-with-upload-API-and-character-with-accent/m-p/701892#M31275</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-07-27T16:34:05Z</dc:date>
    </item>
  </channel>
</rss>

