×

You're using an outdated browser

For a better experience, keep your browser up to date. Check here for the latest version.

Manual

Umlaut Encoding for POST Requests

Thomas Walker

Thomas Walker Last update: Aug 7, 2017

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>
2xlatest
We use cookies to create a secure and effective browsing experience for our website visitors and to understand how you use our site (i.e. Google Analytics). For more information: click here.
Ok