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. 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. 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. Android's [Uri.encode](https://developer.android.com/reference/android/net/Uri#encode(java.lang.String,%20java.lang.String)) also addresses this issue.

View file

@ -1,53 +1,51 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
xmlns="http://maven.apache.org/POM/4.0.0" <!-- This module was also published with a richer model, Gradle metadata, -->
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <!-- which should be used instead. Do not delete the following line which -->
<!-- This module was also published with a richer model, Gradle metadata, --> <!-- is to indicate to Gradle or any Gradle module metadata file consumer -->
<!-- which should be used instead. Do not delete the following line which --> <!-- that they should prefer consuming it instead. -->
<!-- is to indicate to Gradle or any Gradle module metadata file consumer --> <!-- do_not_remove: published-with-gradle-metadata -->
<!-- that they should prefer consuming it instead. --> <modelVersion>4.0.0</modelVersion>
<!-- do_not_remove: published-with-gradle-metadata --> <groupId>net.thauvin.erik</groupId>
<modelVersion>4.0.0</modelVersion> <artifactId>urlencoder</artifactId>
<groupId>net.thauvin.erik</groupId> <version>0.9-SNAPSHOT</version>
<artifactId>urlencoder</artifactId> <name>urlencoder</name>
<version>0.9-SNAPSHOT</version> <description>Encode and decode URL parameters</description>
<name>urlencoder</name> <url>https://github.com/ethauvin/urlencoder</url>
<description>Encode and decode URL parameters</description> <licenses>
<license>
<name>The Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<developers>
<developer>
<id>gbevin</id>
<name>Geert Bevin</name>
<email>gbevin@uwyn.com</email>
</developer>
<developer>
<id>ethauvin</id>
<name>Erik C. Thauvin</name>
<email>erik@thauvin.net</email>
<url>https://erik.thauvin.net/</url>
</developer>
</developers>
<scm>
<connection>scm:git://github.com/ethauvin/urlencoder.git</connection>
<developerConnection>scm:git@github.com:ethauvin/urlencoder.git</developerConnection>
<url>https://github.com/ethauvin/urlencoder</url> <url>https://github.com/ethauvin/urlencoder</url>
<licenses> </scm>
<license> <issueManagement>
<name>The Apache License, Version 2.0</name> <system>GitHub</system>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> <url>https://github.com/ethauvin/urlencoder/issues</url>
</license> </issueManagement>
</licenses> <dependencies>
<developers> <dependency>
<developer> <groupId>org.jetbrains.kotlin</groupId>
<id>gbevin</id> <artifactId>kotlin-stdlib-jdk8</artifactId>
<name>Geert Bevin</name> <version>1.8.0</version>
<email>gbevin@uwyn.com</email> <scope>compile</scope>
</developer> </dependency>
<developer> </dependencies>
<id>ethauvin</id>
<name>Erik C. Thauvin</name>
<email>erik@thauvin.net</email>
<url>https://erik.thauvin.net/</url>
</developer>
</developers>
<scm>
<connection>scm:git://github.com/ethauvin/urlencoder.git</connection>
<developerConnection>scm:git@github.com:ethauvin/urlencoder.git</developerConnection>
<url>https://github.com/ethauvin/urlencoder</url>
</scm>
<issueManagement>
<system>GitHub</system>
<url>https://github.com/ethauvin/urlencoder/issues</url>
</issueManagement>
<dependencies>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib-jdk8</artifactId>
<version>1.8.0</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project> </project>