fix decode

This commit is contained in:
Looly
2023-04-18 12:24:21 +08:00
parent f66b5fe55e
commit 55ca246d3c
2 changed files with 11 additions and 0 deletions

View File

@@ -16,6 +16,12 @@ public class UrlDecoderTest {
Assertions.assertEquals("+", URLDecoder.decodeForPath("+", CharsetUtil.UTF_8));
}
@Test
public void decodePlusTest() {
final String decode = URLDecoder.decode("+", CharsetUtil.UTF_8);
Assertions.assertEquals(" ", decode);
}
@Test
void issue3063Test() throws UnsupportedEncodingException {
// https://github.com/dromara/hutool/issues/3063