From 7b57bf7cf435464b687c7dab418da6acbb5230fb Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Mon, 15 Feb 2016 13:59:56 +0100 Subject: urlencoder test clss --- .../java/at/gv/egiz/pdfas/cli/test/EncoderTest.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 pdf-as-cli/src/test/java/at/gv/egiz/pdfas/cli/test/EncoderTest.java (limited to 'pdf-as-cli/src/test') diff --git a/pdf-as-cli/src/test/java/at/gv/egiz/pdfas/cli/test/EncoderTest.java b/pdf-as-cli/src/test/java/at/gv/egiz/pdfas/cli/test/EncoderTest.java new file mode 100644 index 00000000..b53f6f92 --- /dev/null +++ b/pdf-as-cli/src/test/java/at/gv/egiz/pdfas/cli/test/EncoderTest.java @@ -0,0 +1,18 @@ +package at.gv.egiz.pdfas.cli.test; + +import java.net.URL; +import java.net.URLEncoder; + +public class EncoderTest { + + public static void main(String[] args) throws Exception { + + System.out.println("URLEncoder"); + System.out.println(URLEncoder.encode("http://teasasd.host.asd/asdasd/asda/asd?asdqwqe=asdwqe812331&adijoij=123123", "UTF-8")); + System.out.println(URLEncoder.encode("_topXXXX\">", "UTF-8")); + + + URL url = new URL("_topXXXX\">"); + + } +} -- cgit v1.2.3