title: Mac Terminal Curl for textfile
body: <p>I am trying to download a CSV file from a local webserver (the webserver runs on a signal conditioning instrument) with:</p>
  
  <pre><code>curl -O http://10.0.0.139/crv01.csv
  </code></pre>
  
  <p>The output from curl is only weird symbols. If I put the same url in Safari the CSV File is correctly depicted. Is there any encoding problem with curl?</p>
  
  <p>I tried the verbose option which gives:</p>
  
  <pre><code>Gunthers-MacBook-Pro:Documents guenther$ curl -v -O http://10.0.0.141/crv01.csv
  * About to connect() to 10.0.0.141 port 80 (#0)
  *   Trying 10.0.0.141...
    % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                   Dload  Upload   Total   Spent    Left  Speed
    0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* connected
  * Connected to 10.0.0.141 (10.0.0.141) port 80 (#0)
  &gt; GET /crv01.csv HTTP/1.1
  &gt; User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8x zlib/1.2.5
  &gt; Host: 10.0.0.141
  &gt; Accept: */*
  &gt; 
  &lt; HTTP/1.1 200 OK
  &lt; Date: Mon Aug 26 21:03:12 2013
  &lt; Server: VEGA-HTTP-SERVER
  &lt; Cache-Control: public, max-age=3600
  &lt; Content-type: text/plain
  &lt; Connection: Close
  &lt; Content-Encoding: gzip
  &lt; Content-Length: 226
  &lt; 
  { [data not shown]
  100   226  100   226    0     0   1883      0 --:--:-- --:--:-- --:--:--  1965
  * Closing connection #0
  Gunthers-MacBook-Pro:Documents guenther$ vi crv01.csv
  
  ^_&lt;8b&gt;^H^@^@^@^@^@^@^C}&lt;92&gt;Á
  &lt;83&gt;0^L&lt;86&gt;ï&lt;82&gt;ï xÙ^N+I;kkO²&lt;95&gt;!l^N6õ-ÆÞÿ¶zÐ¤¬4Ç~$ÿ&lt;9f&gt;?­_~^YÞÃs¬P@YÔ&lt;97&gt;ùµø
  ÐMýí4~E&lt;85&gt;áñÚOÞMÃÃ»¥¿Ïþð9&lt;96&gt;&lt;85&gt;l^D^X!^A&lt;95&gt;CÛ)Õ¡uR´^RBETB&lt;96&gt;b&lt;96&gt;J¢^X^F^G&lt;87&gt;LWª^?ªwWÀt·^F&lt;99&gt;n&lt;82&gt;&amp;tY/Ó]M­®^X=g]5D^S½:KÛ,5;Õv^]^]®À\Ù^\EÈRÌRÊ*¡&lt;8b&gt;&lt;94&gt;U&lt;8a&gt;RV)JY¥(e¥^M&lt;84&gt;&lt;8a&gt;öEÊ*E^Mmd TÜk&lt;89&gt;¶^AÆ÷eÿy&lt;9b&gt;ü^C»üß{E^C^@^@
  </code></pre>
  
  <p>Source Code of the webpage (Google Chrome) is a plain cdv file. CSV File is create by 
  <a href="http://www.vega.com/en/Signal-conditioning-instrument-VEGAMET391.htm" rel="nofollow">http://www.vega.com/en/Signal-conditioning-instrument-VEGAMET391.htm</a></p>
  
  <p>The --text-ascii option also did not help!</p>