Minor cleanup
This commit is contained in:
parent
1da595e08a
commit
d4a6347310
1 changed files with 3 additions and 3 deletions
|
@ -116,7 +116,7 @@ val u = URLEncoder.encode("foo +bar", StandardCharsets.UTF_8)
|
|||
would be encoded as:
|
||||
|
||||
```
|
||||
foo+%28bar
|
||||
foo+%28+bar
|
||||
```
|
||||
|
||||
Trying to decode it with [Spring](https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/web/util/UriUtils.html#decode(java.lang.String,java.lang.String)), for example:
|
||||
|
@ -128,7 +128,7 @@ UriUtils.decode(u, StandardCharsets.UTF_8))
|
|||
would return:
|
||||
|
||||
```
|
||||
foo++bar
|
||||
foo+++bar
|
||||
```
|
||||
|
||||
Unfortunately, decoding with [Uri.decode](https://developer.android.com/reference/android/net/Uri#decode(java.lang.String)) on Android, [decodeURI](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURI) in Javascript, etc. would yield the exact same result.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue