| java.lang.Object uk.org.ponder.stringutil.URLEncoder
URLEncoder | abstract public class URLEncoder (Code) | | A light wrapper for java.net.URLEncoder . Consult SVN rev 194
for the historical implementation described in the following comment, which
refers to a bug that was fixed in JDK 1.4.
This class is similar to java.net.URLEncoder except that it
can handle non-Latin characters, whereas Java's version is
documented to use only ISO 8859-1 .
|
caseDiff | final static int caseDiff(Code) | | |
appendURLHex | public static void appendURLHex(char c, CharWrap target)(Code) | | Converts a single character (byte) into its upper-case URL hex
representation %E0, say.
|
encode | public static String encode(String s)(Code) | | Encode the supplied URL into a UTF-8 based URL encoding
|
encode | public static String encode(String s, String encoding)(Code) | | URL-encodes a string using any available encoding.
Parameters: s - what to encode Parameters: encoding - name of the encoding to use; URL-encoded version of s throws: java.io.UnsupportedEncodingException - if encoding isn't supported by the Java VM and/orclass-libraries |
|
|