package maiolum.util;

/**
 * Provides methods to URL-decode strings sent in HTTP forms.
 */
public class URLDecoder {
  public static String convertFromISO(String string, String codepage)
    throws java.io.UnsupportedEncodingException
  {
    if(string != null) {
      return new String(string.getBytes("ISO-8859-1"), codepage);
    } else {
      return "";
    }
  }

}