<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Arial,Helvetica,sans-serif'>
<div id="signature">Yes, PmWiki can handle international characters in searches (try on pmwiki.org), but you may need to enable UTF-8.<br /><br />See <a href="https://www.pmwiki.org/wiki/PmWiki/UTF-8">https://www.pmwiki.org/wiki/PmWiki/UTF-8</a> as this may not be trivial for existing wikis.<br /><br />In fact, the browser will use the encoding of your page when it submits a form. So if your wiki is in the old encoding ISO-8859-1, "ä" will be encoded as "%E4", if your wiki is in UTF-8,  "ä" will be encoded as "%C3%A4". <br /><br />The browser's URL bar will show the UTF-8 international characters decoded (ä), but not the other encodings (%E4). All browsers, all major search engines, Wikipedia and other popular websites use UTF-8.<br /><br />I have only recently encountered a Microsoft IIS installation that refused to correctly decode international characters in pagenames (not sure about searches) but somehow it worked with CleanURLs.<br /><br />Petko</div>
<br />
<p id="reply-intro">On 24/01/2023 10:50, Hans wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"><span style="font-family: arial, helvetica, sans-serif;">Hello Pmwiki-users,</span><br /><br /><span style="font-family: arial, helvetica, sans-serif;">Normal search using a search box works fine, when the query string contains special non-ascii characters.</span><br /><span style="font-family: arial, helvetica, sans-serif;">For instance searching for pages with "Bär" gets the right results, and "Bär" appears in the search box, and in the URL bar I got the entry:</span><br /><span style="font-family: arial, helvetica, sans-serif;"><a href="http://localhost/softflow/test?n=Site.Search&action=search&q=B%E4r" target="_blank" rel="noopener noreferrer">http://localhost/softflow/test?n=Site.Search&action=search&q=B%E4r</a></span><br /><span style="font-family: arial, helvetica, sans-serif;">so the "ä" character is rendered as "%E4".</span><br /><br /><span style="font-family: arial, helvetica, sans-serif;">Using a Context Search add-on (for Firefox) I can grab text with non-ascii characters and have that string given to PmWiki as a url q= parameter. But PmWiki does not like that, and garbles it.</span><br /><span style="font-family: arial, helvetica, sans-serif;">In the example the url parameters will read: ....?n=Site.Search&action=search&q=Bär</span><br /><span style="font-family: arial, helvetica, sans-serif;">and the search will fail, and the Search page displays with "Bär" in the search box, not the string I want to search for.</span><br /><br /><span style="font-family: arial, helvetica, sans-serif;">The "Select and Search" Firefox add-on is set up for a PmWiki search like this:</span><br /><span style="font-family: arial, helvetica, sans-serif;"><a href="http://localhost/softflow/test?n=Site.Search&action=search&q=%s" target="_blank" rel="noopener noreferrer">http://localhost/softflow/test?n=Site.Search&action=search&q=%s</a></span><br /><span style="font-family: arial, helvetica, sans-serif;">In a search the %s gets replaced with a highlighted text string using a context menu option to use this add-on with this search option.</span><br /><br /><span style="font-family: arial, helvetica, sans-serif;">So my question is: could PmWiki handle special non-ascii  characters in url parameters for a search query?</span><br /><br /><span style="font-family: arial, helvetica, sans-serif;">If I use google search engine, it shows no  problems with special characters being provided via url parameters. </span></div>
</blockquote>
</body></html>