我在我的chrome中使用以下URL,它运行正常:https: //westus.api.cognitive.microsoft.com/luis/v2.0/apps/62bea90c-9b0c-487b-8416-1a4d94772f99?subscription-key=29317e2237fb4b43a91959cadee6f143&staging=真冗长=真&的timezoneoffset = 480&q =哪个国家获得2010年世界杯第一名
它返回json字符串,如下所示:
{
"query": "??????2010???????",
"topScoringIntent": {
"intent": "Query",
"score": 0.9818858
},
"intents": [
{
"intent": "Query",
"score": 0.9818858
},
{
"intent": "None",
"score": 0.01755463
}
],
"entities": [
{
"entity": "2010?",
"type": "builtin.datetimeV2.daterange",
"startIndex": 6,
"endIndex": 10,
"resolution": {
"values": [
{
"timex": "2010",
"type": "daterange",
"start": "2010-01-01",
"end": "2011-01-01"
}
]
}
},
{
"entity": "2010",
"type": "builtin.number",
"startIndex": 6,
"endIndex": 9,
"resolution": {
"value": "2010"
}
},
{
"entity": "?",
"type": …Run Code Online (Sandbox Code Playgroud) 如何使用.NET(VB或C#)轻松地将字符串编码为utf8?例如,我需要编码一个像"This(is)my string"这样的字符串,结果应该是一个字符串"This +%28is%29 + my + string".
TIA
J.P