Home > Net >  Help: json parameters of Chinese characters, webapi can't get the value (null)
Help: json parameters of Chinese characters, webapi can't get the value (null)

Time:09-15

As title, Chinese characters have a problem in json, English no problem, help,


The json data as follows
{" Station ", "LR01" and "send" : "2016090", "OP" : "008691", "ReelId" : "NA", "Timestamp" : "the 2020-04-13 10:28:20", "BarcodeResultList" : [{" Barcode ":" 2016090-10007 ", "Result" : "OK" and "Remark" : ""}, {" Barcode" : "2016090-10007", "Result" : "NG", "Remark" : "E"}]}

If remove the json in Chinese
{" Station ", "LR01" and "send" : "2016090", "OP" : "008691", "ReelId" : "NA", "Timestamp" : "the 2020-04-13 10:28:20", "BarcodeResultList" : [{" Barcode ":" 2016090-10007 ", "Result" : "OK" and "Remark" : ""}, {" Barcode" : "2016090-10007", "Result" : "NG", "Remark" : "E"}]}

Webapi, can return value,

CodePudding user response:

Under the request header set there coding, the baidu search all over the place

CodePudding user response:

reference 1/f, hands on the keyboard to knock very light response:
code under the request header set there, everywhere in the baidu search is

Application/json. Charset=utf-8 has set, it is not, please give advice or comments!

CodePudding user response:

What is your front end call method

CodePudding user response:

CompleteSNBody what this is, you direct access to the string first look at it

CodePudding user response:

Has been solved, thank you!
  • Related