mirror of
https://github.com/gbevin/urlencoder.git
synced 2025-04-24 23:07:12 -07:00
Minor cleanup
This commit is contained in:
parent
f5485bf2d5
commit
9af78b38d9
2 changed files with 9 additions and 8 deletions
|
@ -18,10 +18,11 @@ parameters, not URLs, causing the wrong escape sequences to be used.
|
|||
|
||||
Additionally, `java.net.URLEncoder` allocates memory even when no encoding is
|
||||
necessary, significantly impacting performance. This library has a negligible
|
||||
performance impact when the string that is passed in doesn't need to be encoded.
|
||||
performance impact when a specified string doesn't need to be encoded.
|
||||
|
||||
Android's [Uri.encode](https://developer.android.com/reference/android/net/Uri#encode(java.lang.String,%20java.lang.String))
|
||||
also addresses these issues.
|
||||
also addresses these issues, but does not currently support [unicode surrogate pairs](https://learn.microsoft.com/en-us/globalization/encoding/surrogate-pairs).
|
||||
|
||||
|
||||
## Examples (TL;DR)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue