I have a problem when sending a POST request to my couchdb database using curl.
curl -X POST http://admin:password@localhost:3005/fisconet/_find -d '{"selector":{"fields":{"keywords":{"$regex":".*évasion fiscale.*"}}}}' -H "Content-Type: application/json"
This is the error I get:
{"error":"bad_request","reason":"invalid UTF-8 JSON"}
If I remove the accent of the regular expression {"$regex":".*evasion fiscale.*"}
, I don't get the error but I don't find what I'm looking for.
Couldn't find anything on the internet that worked.
Thanks