response.setContentType( "text/html;charset=utf-8" );
String mimeType = ReportEngineService.getInstance( ).getMIMEType( format ); if ( mimeType != null && mimeType.length( ) > 0 ) response.setContentType( mimeType + ";charset=utf-8"); else response.setContentType( "text/html;charset=utf-8" );
	protected void doPreService( HttpServletRequest request,			HttpServletResponse response ) throws ServletException, IOException	{		if ( IBirtConstants.SERVLET_PATH_DOWNLOAD.equalsIgnoreCase( request				.getServletPath( ) ) )		{			response.setContentType( "application/csv;charset=utf-8" ); //$NON-NLS-1$			response.setHeader(					"Content-Disposition", "inline; filename=exportdata.csv" ); //$NON-NLS-1$ //$NON-NLS-2$		}		else if ( ParameterAccessor.PARAM_FORMAT_PDF				.equalsIgnoreCase( ParameterAccessor.getFormat( request ) ) )		{			response.setContentType( "application/pdf" ); //$NON-NLS-1$			String filename = "BIRTReport" + System.currentTimeMillis( ); //$NON-NLS-1$			response					.setHeader(							"Content-Disposition", "inline; filename=" + filename + "\"" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$		}		else		{			response.setContentType( "text/html;charset=utf-8" ); //$NON-NLS-1$			response.setHeader( "cache-control", "no-cache" ); //$NON-NLS-1$ //$NON-NLS-2$		}	}