On 12.12.2007 3:09 Uhr, Andreas Busch wrote:
I have a problem with search and paging,
I do search with a post from form and then do pagination with the
search-result.
work's , but if there are some spezial charachters in the search like ü
etc the paging makes problems.
some codesnippets ..
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
....form method="get" action="/openclass/OCI/DE/search.html">
<input class="searchfield" name="queryString" type="text"
value="drücker"><img src="images/link_pfeil.gif" alt="" height="7"
width="10" border="0"><input type="submit" Value=""
class="search_buttonsmall">
</form>
looks good but the paging links are broken
div id="nav-next">
<a
href="javascript:dolink('/openclass/OCI/DE/search.html?queryString=dr%C3%BCc
ker&pagelength=8&startIndex=8')" class="prevButton"></a>
</div>
there is a problem in queryString %C3%BC
its createt in xsl with
<xsl:variable name="baseurl"><xsl:value-of select="$contextPath"
/>/search.html?queryString=<xsl:value-of select="../@query-string"
/>&pagelength=<xsl:value-of select="../@page-length" />
</xsl:variable>
Serializers are changed to ISO-8859-1 encoding
Need realy help for workaround or bugfixes
Unfortunately, creating your own links does not work with special
characters. While your pages are in ISO-8859-1 and probably work fine
with all forms and stuff since the server also expects ISO-8859-1, these
links get *always* UTF-8 encoded so that you have a mismatch on the server.
Instead of creating a link with <a href=""> you should create a form
with hidden elements and a button. The form values will get encoded
ISO-8859-1 correctly.
Joerg
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]