mirror of
https://github.com/gbevin/urlencoder.git
synced 2025-04-24 23:07:12 -07:00
Added spaceToPlus parameter to encode method
This commit is contained in:
parent
783a044cab
commit
d7437f3167
4 changed files with 101 additions and 71 deletions
|
@ -37,6 +37,7 @@ compared to other solutions like the standard `URLEncoder` in the JDK or
|
|||
UrlEncoder.encode("a test &"); // -> "a%20test%20%26"
|
||||
UrlEncoder.encode("%#okékÉȢ smile!😁"); // -> "%25%23ok%C3%A9k%C3%89%C8%A2%20smile%21%F0%9F%98%81"
|
||||
UrlEncoder.encode("?test=a test", "?="); // -> ?test=a%20test
|
||||
UrlEncoder.encode("foo bar", true); // -> foo+bar
|
||||
|
||||
UrlEncoder.decode("a%20test%20%26"); // -> "a test &"
|
||||
UrlEncoder.decode("%25%23ok%C3%A9k%C3%89%C8%A2%20smile%21%F0%9F%98%81"); // -> "%#okékÉȢ smile!😁"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue