@@ -0,0 +1,1473 @@
+package com.anthonynsimon.url.examples;%0A%0Aimport com.anthonynsimon.url.URL;%0Aimport com.anthonynsimon.url.exceptions.InvalidURLReferenceException;%0Aimport com.anthonynsimon.url.exceptions.MalformedURLException;%0A%0Apublic class UTF8 %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        try %7B%0A            // Parse URLs%0A            URL base = URL.parse(%22https://user:secret@example%E2%99%AC.com/path/to/my/dir#about%22);%0A            URL ref = URL.parse(%22./../file.html?search=germany&language=de_DE%22);%0A%0A            // Parsed base%0A            base.getScheme(); // https%0A            base.getUsername(); // user%0A            base.getPassword(); // secret%0A            base.getHost(); // example%E2%99%AC.com%0A            base.getPath(); // /path/to/my/dir%0A            base.getFragment(); // about%0A%0A            // Parsed reference%0A            ref.getPath(); // ./../file.html%0A            ref.getQueryPairs(); // Map%3CString, String%3E = %7Bsearch=germany, language=de_DE%7D%0A%0A            // Resolve them!%0A            URL resolved = base.resolveReference(ref); // https://user:secret@example%E2%99%AC.com/path/to/file.html?key=value%0A            resolved.getPath(); // /file.html%0A%0A            // Escape UTF-8 result%0A            resolved.toString(); // https://user:secret@example%25E2%2599%25AC.com/path/to/file.html?search=germany&language=de_DE%0A%0A        %7D catch (MalformedURLException e) %7B%0A            e.printStackTrace();%0A        %7D catch (InvalidURLReferenceException e) %7B%0A            e.printStackTrace();%0A        %7D%0A    %7D%0A%7D%0A

Add UTF-8 example