Resteasy Jackson JSON解析器无效utf-8启动字节

时间:2014-04-23 10:38:00

标签: curl utf-8 jackson resteasy

我从windows命令行发布下面的卷曲:

curl -X POST -H "Content-Type: application/json; charset=UTF-8" -k -d "{\"firstName\":\"Marjan\",\"midName\":null,\"lastName\":\"Štekar\",\"address\":\"Kfdsfsd 84b\",\"province\":null,\"country\":\"SI\",\"zipId\":\"5211\",\"zipName\":\"Kojsko\",\"idOrganization\":\"2014042311444948\",\"phoneNum\":\"+386.4336172\",\"faxNum\":\"+386.42226172\",\"email\":\"msss.stsss@adsfsd.si\",\"externalId\":\"2014042214301897\"}" https://domene.arctur.local/rest/contact

我收到错误

org.codehaus.jackson.JsonParseException:无效的UTF-8起始字节0x8a  在[来源:io.undertow.servlet.spec.ServletInputStreamImpl@298db378; line:1,column:51]

如果我将Štekar改为Stekar,那就可以了。

json是从UTF-8文本文件

复制粘贴的

如何强制comandline将代码表示为UTF-8

0 个答案:

没有答案