卷曲 l​​atin1 编码

Curl latin1 encoding

我要发帖:

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š"}'

但是当我在 Riak 上阅读有关文本属性的数据时,有 "This is croatian word: Ĺ išmiš"

如何更改编码以及我需要在哪里更改编码才能获得有效值?

通过将字符集添加到 -H 选项解决问题

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š"}'