code: public static Properties propertiesFromString(String propString) throws IOException {
          Properties props = new Properties();
  
  
          String pstring = URLDecoder.decode(propString, "ISO-8859-1");
  
  
          props.load(new ByteArrayInputStream(pstring.getBytes()));
          return props;
      }
docs: Convert a String into a Properties object
  
  @param propString properties string
  
  @return properties
  
  @throws IOException if an error occurs