title: What is the reason for curl --data-urlencode error on running curl from within a Windows batch script?
body: <p>I am using the <em>Text Analytics</em> service (find the language) of the <em>Azure</em> portal and a Windows batch script with <em>Curl</em> which is sending JSON data:</p>
  <p>The following Windows batch script using <code>curl</code> and the <code>--data</code> option works:</p>
  <pre><code>set data=&quot;{'documents':[{'id':1,'text':'your are my guest'}]}&quot;
  
  curl -X POST %endpoint% ^
  -H &quot;Content-Type: application/json&quot; ^
  --data %data% 
  </code></pre>
  <p>However, it does not work when I want to use the <code>--data-urlencode</code> option with the same code.</p>
  <p>The output error is:</p>
  <pre><code>Request body must be present
  </code></pre>
  <p>I have tried many things (double quote, escape, and so on), but nothing works.</p>
  <p>Some ideas?</p>