org.pentaho.reporting.libraries.formula.util

Class URLEncoder

public class URLEncoder extends Object

Creation-Date: Jan 22, 2007, 4:36:38 PM

Author: Thomas Morgner

Method Summary
static Stringencode(String s, String encoding)
static StringencodeUTF8(String s)
Encode a string according to RFC 1738.

Method Detail

encode

public static String encode(String s, String encoding)

encodeUTF8

public static String encodeUTF8(String s)
Encode a string according to RFC 1738.

"...Only alphanumerics [0-9a-zA-Z], the special characters "$-_.+!*'()," [not including the quotes - ed], and reserved characters used for their reserved purposes may be used unencoded within a URL."

Parameters: s The string to be encoded

Returns: The encoded string