.append( "&" + URLEncoder.encode( key, "UTF-8" ) + "=" + URLEncoder.encode( value, "UTF-8" ) );
.append( ParameterAccessor .getQueryParameterString( URLEncoder .encode( key, ParameterAccessor.UTF_8_ENCODE ), URLEncoder .encode( value, ParameterAccessor.UTF_8_ENCODE ) ) );
	protected String buildDrillAction( IAction action, Object context )	{		String baseURL = null;		if ( context != null && context instanceof HTMLRenderContext )		{			baseURL = ( (HTMLRenderContext) context ).getBaseURL( );		}		StringBuffer link = new StringBuffer( );		String reportName = action.getReportName( );		if ( reportName != null && !reportName.equals( "" ) ) //$NON-NLS-1$		{			String format = action.getFormat( );			if ( ParameterAccessor.PARAM_FORMAT_PDF.equalsIgnoreCase( format ) )			{				link.append( baseURL.replaceFirst( "frameset", "run" ) ); //$NON-NLS-1$ //$NON-NLS-2$			}			else			{				link.append( baseURL );			}			link					.append( reportName.toLowerCase( )							.endsWith( ".rptdocument" ) ? "?__document=" : "?__report=" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$			try			{				link.append( URLEncoder.encode( reportName, "UTF-8" ) ); //$NON-NLS-1$			}			catch ( UnsupportedEncodingException e1 )			{				// It should not happen. Does nothing			}			// add format support			if ( format != null && format.length( ) > 0 )			{				link.append( "&__format=" + format ); //$NON-NLS-1$			}			// Adds the parameters			if ( action.getParameterBindings( ) != null )			{				Iterator paramsIte = action.getParameterBindings( ).entrySet( )						.iterator( );				while ( paramsIte.hasNext( ) )				{					Map.Entry entry = (Map.Entry) paramsIte.next( );					try					{						String key = (String) entry.getKey( );						Object valueObj = entry.getValue( );						if ( valueObj != null )						{							String value = valueObj.toString( );							link									.append( "&" + URLEncoder.encode( key, "UTF-8" ) //$NON-NLS-1$ //$NON-NLS-2$											+ "=" + URLEncoder.encode( value, "UTF-8" ) ); //$NON-NLS-1$ //$NON-NLS-2$						}					}					catch ( UnsupportedEncodingException e )					{						// Does nothing					}				}			}			// Adding overwrite.			link.append( "&__overwrite=true" ); //$NON-NLS-1$			// The search rules are not supported yet.			if ( !ParameterAccessor.PARAM_FORMAT_PDF.equalsIgnoreCase( format )					&& action.getBookmark( ) != null )			{				try				{					link.append( "&__bookmark=" ); //$NON-NLS-1$					link.append( URLEncoder.encode( action.getBookmark( ),							"UTF-8" ) ); //$NON-NLS-1$				}				catch ( UnsupportedEncodingException e )				{					// Does nothing				}			}		}		return link.toString( );	}