0

I want to post:

curl -v -X PUT http://192.168.56.12:10018/riak/vijesti/novadjnada -H "Content-Type: application/json" -d '{"naslov":"Animal","text":"This is croatian word: Šišmiš"}'

But when I read that data on Riak on text property there is "This is croatian word: Šišmiš"

How can I change encoding and where do I need to change it to get valid value?

DynamicsNinja
  • 177
  • 1
  • 3
  • 17

1 Answers1

1

Problem is solved by adding charset to -H option

curl -v -X PUT http://192.168.56.12:10018/riak/vijesti/novadjnada -H "Content-Type: application/json;charset=utf-8" -d '{"naslov":"Animal","text":"This is croatian word: Šišmiš"}'

DynamicsNinja
  • 177
  • 1
  • 3
  • 17