This is the documentation for an older version of Scroll Viewport. Here you can view the most up-to-date version of the Scroll Viewport documentation.

Umlaut Encoding for POST Requests

Symptom/Problems

The search does not return any (or less) results when searching for a search term that contains umlauts when using POST to submit the search form. With GET everything works as expected.

Solution

Make sure to add the enctype attribute to the form tag.

Example:

<form action="${space.url}/search" method="POST" enctype="application/x-www-form-urlencoded">
    <input type="text" autocomplete="off" name="q" value="$!searchRequest.queryString" />
    <button type="submit">Search</button>
</form>