fix decode

This commit is contained in:
Looly
2023-04-18 12:24:15 +08:00
parent 549523db6c
commit 91de866ffa
3 changed files with 19 additions and 5 deletions

View File

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