Added link to Java version

This commit is contained in:
Erik C. Thauvin 2022-12-30 22:42:08 -08:00
parent af92d86a2e
commit f5201da64c
2 changed files with 52 additions and 50 deletions

View file

@ -10,6 +10,10 @@
A simple library to encode/decode URL parameters.
This library was adapted from the [RIFE2 Web Application Framework](https://rife2.com).
A pure Java version can also be found at [https://github.com/gbevin/urlencoder](https://github.com/gbevin/urlencoder).
For decades we've been using [java.net.URLEncoder](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/URLEncoder.html) because of its improper naming. It is actually intended to encode HTML form parameters, not URLs.
Android's [Uri.encode](https://developer.android.com/reference/android/net/Uri#encode(java.lang.String,%20java.lang.String)) also addresses this issue.