Bug 179636 [Smoke] Chart can not be previewed [0001]
Description: Chart can not be previewed Build number: 2.2.0.v20070328-0630 Steps to reproduce: 1. New a chart, preview. Expected result: Chart is displayed correctly. Actual result: Chart can not be previewed. Error log: N/A
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/utility/ParameterAccessor.java
catch ( UnsupportedEncodingException e )
			{
				UTFString = s;
			}
		}
		return UTFString;
	}
	/**
	 * URL encoding based on incoming encoding format.
	 * 
	 * @param s
	 *            string to be encoded.
	 * @param format
	 *            encoding format.
	 * @return
	 */
	public static String urlEncode( String s, String format )
	{
		String encodedString = s;
		if ( s != null )
		{
			try
			{
				encodedString = URLEncoder.encode( s, format );
			}
			catch ( UnsupportedEncodingException e )
			{
				encodedString = s;
			}
		}