Bug 200812 Issue when remove one separator setting in viewer.property[0002]
Description: Issue when remove one separator setting in viewer.property Build number:2.2.1.v200708220927 Steps to reproduce: 1. Deploy birt. 2. Open viewer.properties under WEB-INF folder. 3. Delete "viewer.sep.0=," line 4. Start server. 5. Preview report. 6. Export Data, select columns and select "Comma(,)", click OK. Expected result: Comma(,) isn't in the separator list. Actual result: Nothing happened after step6 and no error logs. Error log:n/a
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/utility/ParameterAccessor.java
*/
	public static Locale getLocaleFromString( String locale )
	{
		if ( locale == null || locale.length( ) <= 0 )
		{
			return null;
		}
		int index = locale.indexOf( '_' );
		if ( index != -1 )
		{
			String language = locale.substring( 0, index );
			String country = locale.substring( index + 1 );
			return new Locale( language, country );
		}
		return new Locale( locale );
	}
	/**
	 * Get report locale in string.
	 * 
	 * @param request
	 *            http request
	 * @return report String
	 */
	public static String getLocaleString( HttpServletRequest request )
	{
		return getParameter( request, PARAM_LOCALE );
	}
	/**
	 * Get report page from Http request. If frameset pattern, default page is
	 * 1.