当我使用 urlencode 访问我的 api 时,URL 编码不起作用 [关闭]

问题描述 投票:0回答:0

我正在使用 url encode 来传递值

asd~!@#$%^&*()_+=-`:;"'?/><,.?12

但它仍然在 api 端抛出错误,编码后查看我的 url

http://localhost:32569/Control/v2/Suggest(FieldName='name',Value='asd%257e!%2540%2523%2524%2525%255e%2526*()_%252b%253d-%2560%253a%253b%2522%2527%253f%252f%253e%253c%252c.%253f12')/Tags?$top=1&q=asd

我做错了什么?

urlencode
© www.soinside.com 2019 - 2024. All rights reserved.