src/org/ohmage/util/StringUtils.java
public static String urlDecode(String string) {
		if(null == string) {
			return null;
		}
		
		try {
			
			return URLDecoder.decode(string, "UTF-8");
			
		} catch (UnsupportedEncodingException uee) { // bad!! is the Java install corrupted?
			
			throw new IllegalStateException("cannot decode UTF-8 string: " + string);
		}
	}
/**
	 * @return the URL decoded version of the provided string.
	 */
@return the URL decoded version of the provided string.
@return the URL decoded version of the provided string .
public static String urlDecode(String string) {
		if(null == string) {
			return null;
		}
		try {
			return URLDecoder.decode(string, "UTF-8");
		} catch (UnsupportedEncodingException uee) { 
			throw new IllegalStateException("cannot decode UTF-8 string: " + string);
		}
	}
public static String urlDecode ( String string ) { if ( null == string ) { return null ; } try { return URLDecoder . decode ( string , "UTF-8" ) ; } catch ( UnsupportedEncodingException uee ) { throw new IllegalStateException ( "cannot decode UTF-8 string: " + string ) ; } }
@return the URL decoded version of the provided string.
@return the URL decoded version of the provided string .
// bad!! is the Java install corrupted?