<?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: docs contain invalid chars in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/docs-contain-invalid-chars/m-p/251984#M14520</link>
    <description>&lt;P&gt;interestingly, I dont see the malformed html when I use the http api via:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;curl -X POST https://api.dropboxapi.com/2/paper/docs/download \
    --header "Authorization: Bearer xxyyzzzzzz" \
    --header "Dropbox-API-Arg: {\"doc_id\": \"S7sSIlM2E0g6p3OXhhts4\",\"export_format\": \"html\"}"&lt;/PRE&gt;</description>
    <pubDate>Thu, 09 Nov 2017 21:37:29 GMT</pubDate>
    <dc:creator>bradoyler</dc:creator>
    <dc:date>2017-11-09T21:37:29Z</dc:date>
    <item>
      <title>docs contain invalid chars</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/docs-contain-invalid-chars/m-p/251976#M14515</link>
      <description>&lt;P&gt;&lt;SPAN&gt;using JS sdk method paperDocsDownload({ doc_id, export_format: 'html' }) and certain character (m-dash, curly quotes) come thru as â.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The test document is here:&amp;nbsp;&lt;A href="https://paper.dropbox.com/doc/test-paper-doc-S7sSIlM2E0g6p3OXhhts4&amp;nbsp;" target="_blank"&gt;https://paper.dropbox.com/doc/test-paper-doc-S7sSIlM2E0g6p3OXhhts4&amp;nbsp;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also the project I'm working on is here:&amp;nbsp;&lt;A href="https://github.com/bradoyler/paper2json" target="_blank"&gt;https://github.com/bradoyler/paper2json&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:17:27 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/docs-contain-invalid-chars/m-p/251976#M14515</guid>
      <dc:creator>bradoyler</dc:creator>
      <dc:date>2019-05-29T09:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: docs contain invalid chars</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/docs-contain-invalid-chars/m-p/251978#M14516</link>
      <description>Thanks! Can you share the rest of the problematic code though? Thanks in advance!</description>
      <pubDate>Thu, 09 Nov 2017 21:15:05 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/docs-contain-invalid-chars/m-p/251978#M14516</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-11-09T21:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: docs contain invalid chars</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/docs-contain-invalid-chars/m-p/251979#M14517</link>
      <description>The 'paper2json' GitHub link you shared is a 404 for me. (Perhaps it's not publicly accessible?)&lt;BR /&gt;&lt;BR /&gt;In any case, can you share just the code snippet(s) needed to reproduce the 'â' issue? &lt;BR /&gt;&lt;BR /&gt;When I download the data to an html file using `URL.createObjectURL(response.fileBlob)` the resulting html file shows the correct characters.</description>
      <pubDate>Thu, 09 Nov 2017 21:18:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/docs-contain-invalid-chars/m-p/251979#M14517</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-11-09T21:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: docs contain invalid chars</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/docs-contain-invalid-chars/m-p/251980#M14518</link>
      <description>The repo is available now, and it looks like you're running in node and not browser JavaScript like I was testing with. I'll try your code in node. Thanks!</description>
      <pubDate>Thu, 09 Nov 2017 21:22:37 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/docs-contain-invalid-chars/m-p/251980#M14518</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-11-09T21:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: docs contain invalid chars</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/docs-contain-invalid-chars/m-p/251983#M14519</link>
      <description>&lt;P&gt;more simple test:&amp;nbsp;&lt;A href="https://github.com/bradoyler/paper2json/blob/master/test/html.js" target="_blank"&gt;https://github.com/bradoyler/paper2json/blob/master/test/html.js&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 21:35:54 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/docs-contain-invalid-chars/m-p/251983#M14519</guid>
      <dc:creator>bradoyler</dc:creator>
      <dc:date>2017-11-09T21:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: docs contain invalid chars</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/docs-contain-invalid-chars/m-p/251984#M14520</link>
      <description>&lt;P&gt;interestingly, I dont see the malformed html when I use the http api via:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;curl -X POST https://api.dropboxapi.com/2/paper/docs/download \
    --header "Authorization: Bearer xxyyzzzzzz" \
    --header "Dropbox-API-Arg: {\"doc_id\": \"S7sSIlM2E0g6p3OXhhts4\",\"export_format\": \"html\"}"&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Nov 2017 21:37:29 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/docs-contain-invalid-chars/m-p/251984#M14520</guid>
      <dc:creator>bradoyler</dc:creator>
      <dc:date>2017-11-09T21:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: docs contain invalid chars</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/docs-contain-invalid-chars/m-p/251995#M14521</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was able to reproduce the issue. It looks like it is a matter of encoding it properly. You can do so like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;new Buffer(doc.fileBinary, 'binary').toString()&lt;/PRE&gt;
&lt;P&gt;I'll ask the team to look into whether or not the SDK should/can do that for you though.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 22:25:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/docs-contain-invalid-chars/m-p/251995#M14521</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-11-09T22:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: docs contain invalid chars</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/docs-contain-invalid-chars/m-p/252003#M14522</link>
      <description>&lt;P&gt;Doh! You're right.&lt;/P&gt;&lt;P&gt;Proper way to do this in Node 6+ is like this:&lt;/P&gt;&lt;PRE&gt;Buffer.from(doc.fileBinary, 'binary').toString()&lt;/PRE&gt;&lt;P&gt;But yea, I can't think of a reason why&amp;nbsp;an SDK user would&amp;nbsp;want&amp;nbsp;different behavior from the HTTP API.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 23:35:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/docs-contain-invalid-chars/m-p/252003#M14522</guid>
      <dc:creator>bradoyler</dc:creator>
      <dc:date>2017-11-09T23:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: docs contain invalid chars</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/docs-contain-invalid-chars/m-p/262036#M15292</link>
      <description>For reference, that is no longer necessary with the latest version of the SDK, v.3.x. You can just use fileBinary directly.</description>
      <pubDate>Tue, 23 Jan 2018 18:51:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/docs-contain-invalid-chars/m-p/262036#M15292</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-01-23T18:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: docs contain invalid chars</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/docs-contain-invalid-chars/m-p/266926#M15674</link>
      <description>Unfortunately, this caused a different issue. Please upgrade to v4.0.0 and use the Buffer workaround again. Apologies for the bother.</description>
      <pubDate>Wed, 28 Feb 2018 18:42:29 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/docs-contain-invalid-chars/m-p/266926#M15674</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-02-28T18:42:29Z</dc:date>
    </item>
  </channel>
</rss>

