Bug 162830 Bookmark with single quote doesn't work in Web Viewer
Description: Bookmark with single quote doesn't work in Web Viewer Steps to reproduce: 1. Insert two labels, set page break between them. 2. Set bookmark "b'k" to the second label. 3. Define internal bookmark link in the first label. 4. Preview with web viewer/html/pdf, click the link. 5. preview with /preview servlet Expected result: Link works, can link to the second label. Actual result: pdf and /preview servlet can link to target label. Web Viewer(frameset and run servlet) cannot link to target label.
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/ViewerHTMLActionHandler.java
package org.eclipse.birt.report.service;
import java.io.UnsupportedEncodingException;
import java.net.URL;
import java.net.URLEncoder;
import java.util.Iterator;
import java.util.Locale;
import java.util.Map;
import java.util.logging.Logger;
import org.eclipse.birt.report.IBirtConstants;
import org.eclipse.birt.report.engine.api.HTMLActionHandler;
import org.eclipse.birt.report.engine.api.HTMLRenderContext;
import org.eclipse.birt.report.engine.api.IAction;
import org.eclipse.birt.report.engine.api.IReportDocument;
import org.eclipse.birt.report.engine.api.IReportRunnable;
import org.eclipse.birt.report.engine.api.PDFRenderContext;
import org.eclipse.birt.report.engine.api.script.IReportContext;
import org.eclipse.birt.report.model.api.ModuleHandle;
import org.eclipse.birt.report.utility.DataUtil;
import org.eclipse.birt.report.utility.ParameterAccessor;
/**
 * HTML action handler for url generation.
 */
class ViewerHTMLActionHandler extends HTMLActionHandler
{
	/**
	 * Logger for this handler.
	 */
	protected Logger log = Logger.getLogger( ViewerHTMLActionHandler.class
			.getName( ) );
	/**