req.setCharacterEncoding("UTF-8");
pageContext = factory.getPageContext(this, req, resp,
errorPageURL, needsSession, bufferSize, autoFlush);
// Create a shared wrapper
PageRequest request = new JspPageRequest(pageContext);
PageResponse response = new JspPageResponse(pageContext);
// Extract the file name
String encoding = "utf-8"; // We use utf-8 in our JSPs
String fileUrl = SearchToolkit.extractFileUrl(req.getRequestURI(), encoding);