title: CouchDB error: Latin character in JSON using cURL
body: <p>I am trying to create a CouchDB document that contains Latin characters using cURL without success.</p>
  
  <pre><code>curl -X PUT 'http://localhost:5984/example/1' -d '{"title":"There is Nóthing Left to Lose","artist":"Foo Fighters"}' -H 'Content-Type: application/json'
  </code></pre>
  
  <p>The response is <code>{"error":"bad_request","reason":"invalid_json"}</code>.</p>
  
  <p>However, the following works</p>
  
  <pre><code>curl -X PUT 'http://localhost:5984/example/1' -d '{"title":"There is Nothing Left to Lose","artist":"Foo Fighters"}' -H 'Content-Type: application/json'
  </code></pre>
  
  <p>The only difference is <code>ó</code> in <code>Nothing</code>.</p>
  
  <p>Complete debug message:</p>
  
  <pre><code>* About to connect() to 127.0.0.1 port 5984 (#0)
  *   Trying 127.0.0.1...
  * Adding handle: conn: 0x20a6050
  * Adding handle: send: 0
  * Adding handle: recv: 0
  * Curl_addHandleToPipeline: length: 1
  * - Conn 0 (0x20a6050) send_pipe: 1, recv_pipe: 0
    % 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 to localhost (127.0.0.1) port 5984 (#0)
  &gt; PUT /example/1 HTTP/1.1
  &gt; User-Agent: curl/7.30.0
  &gt; Host: localhost:5984
  &gt; Accept: */*
  &gt; Content-Type: application/json
  &gt; Content-Length: 65
  &gt;
  } [data not shown]
  * upload completely sent off: 65 out of 65 bytes
  &lt; HTTP/1.1 400 Bad Request
  * Server CouchDB/1.4.0 (Erlang OTP/R14B04) is not blacklisted
  &lt; Server: CouchDB/1.4.0 (Erlang OTP/R14B04)
  &lt; Date: Wed, 02 Apr 2014 13:38:33 GMT
  &lt; Content-Type: text/plain; charset=utf-8
  &lt; Content-Length: 48
  &lt; Cache-Control: must-revalidate
  &lt;
  { [data not shown]
  100   113  100    48  100    65   3000   4062 --:--:-- --:--:-- --:--:-- 65000
  {"error":"bad_request","reason":"invalid_json"}
  
  * Connection #0 to host 127.0.0.1 left intact
  </code></pre>