![](/img/trans.png)
[英]How to I use io.netty.handler.codec.http.multipart.HttpPostRequestEncoder finalizeRequest
[英]io.netty.handler.codec.http.multipart.HttpPostRequestDecoder$ErrorDataDecoderException: Bad string invalid escape sequence
when the http content contains the char %, the function of netty: io.netty.handler.codec.http.QueryStringDecoder.decodeComponent() will throw the IllegalArgumentException with message "invalid escape sequence `%"......".
這是否意味着 http 內容不能包含 char %? 請求參數是 json str:
{"discountRate":"10%"}
代碼細節無法顯示;
百分號在 URL 中具有特殊含義。 文字百分號需要編碼為 %25 https://www.urlencoder.io/learn/
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.