profile
viewpoint

zqq2016/backbonejs-learning-note 0

backbonejs学习笔记更新版,使用backbone1.1.0

zqq2016/cJSON 0

Ultralightweight JSON parser in ANSI C

zqq2016/hiredis-vip 0

Support redis cluster. Maintained and used at vipshop.

zqq2016/joplin 0

Joplin - an open source note taking and to-do application with synchronization capabilities for Windows, macOS, Linux, Android and iOS. Forum: https://discourse.joplinapp.org/

zqq2016/lac 0

百度NLP:分词,词性标注,命名实体识别

zqq2016/mbedtls 0

An open source, portable, easy to use, readable and flexible SSL library

zqq2016/persistencejs 0

persistence.js is an asynchronous Javascript database mapper library. You can use it in the browser, as well on the server (and you can share data models between them).

zqq2016/qrcode 0

C library and its language bindings to make a QR Code.

issue commentTencent/rapidjson

json解析报Invalid encoding in string

int json_test() { rapidjson::Document doc; char szData[] = "{"url":"http://www.baidu.com/api/dbAudit/user=dasfdffffdf","req_ip":"192.168.1.80","req_param":"CONTENT-TYPE:application/json\r\nUSER-AGENT:PostmanRuntime/7.26.2\r\nACCEPT:/\r\nCACHE-CONTROL:no-cache\r\nPOSTMAN-TOKEN:91c63247-8204-4eb7-abcf-5531a10f7d3d\r\nHOST:www.baidu.com\r\nACCEPT-ENCODING:gzip, deflate, br\r\nCONNECTION:keep-alive\r\nCONTENT-LENGTH:82\r\nCOOKIE:BAIDUID=EE139BCEEF9632770EA40D37E3DBC073:FG=1; BIDUPSID=EE139BCEEF963277CB41AFAD9A7BA212; PSTM=1595314154; H_PS_PSSID=1467_31671_32046_32231_32115_31321; BDSVRTM=0; BD_HOME=1\r\n","req_time":"2020-08-05 01:50:31","req_body":{"idNumber":["999993221223912","231313131112412"],"mobile":["13131311124","13131112412"],"driverLicenseNumber":["144142223","142223131"]}}"; if (doc.ParseInsitu(szData).HasParseError()) { printf("json 解析失败%d:%s\n", doc.GetErrorOffset(), GetParseError_En(doc.GetParseError())); return -1; } return 0; }

zqq2016

comment created time in 3 months

issue openedTencent/rapidjson

json解析报Invalid encoding in string

您好~ 解析如下json字符串时,出现错误,其错误信息为Invalid encoding in string. char szData[] = "{"url":"http://www.baidu.com/api/dbAudit/user=dasfdffffdf","req_ip":"192.168.1.80","req_param":"CONTENT-TYPE:application/json\r\nUSER-AGENT:PostmanRuntime/7.26.2\r\nACCEPT:/\r\nCACHE-CONTROL:no-cache\r\nPOSTMAN-TOKEN:91c63247-8204-4eb7-abcf-5531a10f7d3d\r\nHOST:www.baidu.com\r\nACCEPT-ENCODING:gzip, deflate, br\r\nCONNECTION:keep-alive\r\nCONTENT-LENGTH:82\r\nCOOKIE:BAIDUID=EE139BCEEF9632770EA40D37E3DBC073:FG=1; BIDUPSID=EE139BCEEF963277CB41AFAD9A7BA212; PSTM=1595314154; H_PS_PSSID=1467_31671_32046_32231_32115_31321; BDSVRTM=0; BD_HOME=1\r\n","req_time":"2020-08-05 01:50:31","req_body":{"idNumber":["999993221223912","231313131112412"],"mobile":["13131311124","13131112412"],"driverLicenseNumber":["144142223","142223131"]}}";

if (doc.ParseInsitu(szData).HasParseError()) { ERROR("json 解析失败{}:{}", doc.GetErrorOffset(), GetParseError_En(doc.GetParseError())); return -1; }

使用在线工具转换能够转换成功

created time in 3 months

more