| java.lang.Object com.sun.portal.desktop.util.I18n
Method Summary | |
public static String | IURLDecode(String enc) | public static String | IURLEncode(String enc) | public static String | decodeCharset(String s, String charset) | public static String | encodeCharset(String s, String charset) | public static String | format(String pattern, Long j, Locale l) | public static String | format(String pattern, Integer i, Locale l) | public static String | format(String pattern, Date d, TimeZone tz, Locale l) | public static String | format(String pattern, TimeZone tz, Locale l) | public static boolean | isAscii(String s) | public static String | print(String s) |
DEFAULT_CHARSET | final public static String DEFAULT_CHARSET(Code) | | |
IURLDecode | public static String IURLDecode(String enc)(Code) | | Replacement URLDecoder.decode() method for i18n purposes
Uses our replacement IURLDecoder class due to bug in java URLDecoder class
Parameters: enc - string to decode, converts from UTF8 first |
IURLEncode | public static String IURLEncode(String enc)(Code) | | Replacement URLEncoder.encode() method for i18n purposes
Uses our replacement IURLEncoder class due to bug in java URLEncoder class
encodes twice because the PAPI decodes once automatically (via the Servlet API)
and then automatically does charset decoding with possibly the wrong charset
so we need to hide behind an extra layer of URLEncoding
Parameters: enc - string to encode, converts to UTF8 first |
|
|