This is happening due to encoding. I assume you have a function in your search page, which you get and use search_text
inside that template. You should decode the URL before doing so.
The urldecode()
function would be what you are looking for. Your string is also UTF-8 encoded, so this is what you are going to need:
$string = utf8_decode( urldecode( $_GET['search_text'] ) );
Now you can use the decoded string in your search.
Related Posts:
- Custom slug in front of search URL
- Why does wordpress still strip my query var?
- Tricky URL rewrite with custom values in url
- Add a query string to ALL links on site
- Add rewrite rule for rewrite endpoint
- How to add custom variable in url without redirect?
- How to building pretty URLs to reflect category hierarchy?
- Rewrite custom post type URL parameters
- Help with Rewrite Rule for Custom Post Type with Query String
- Change pagination url format
- Rewrite: WordPress URL rewrite on Search
- Per Page Permalink Structure for Page Post Type
- Rewrite /category/cars into /topics/cars
- custom wordpress rewrite
- How to use wp rewrite to hide form action url?
- How to change search page url so that it still returns a page when there’s no search query specified?
- Redirect empty search to another page
- Dynamic URL with rewrite rule not working
- How do I rewrite URL that has custom parameter
- Why is there a 404 on page 2+ for my search page?
- Pagination appearing twice in URL after rewrite
- URL Rewrite for CPT single posts
- Rename page URL
- WordPress post-type create url rewriting
- web.config conflict on IIS
- Using custom/dynamic “slug” for a page
- How do I remove a rewrite rule?
- Display posts with author in the url with custom post types
- Clash of the rewrites
- How-to add rewrite rules to point the uploads folder to a subdomain
- Disable wordpress pagination URL rewrite for specific page
- How to use Post Custom Metadata in Post Titles and Post Permalinks
- How do i change the search permanent links
- rewrite_rule() not preserving the query string
- Appending numbers to url do not break the link
- Custom rewrite rules are sending everything to index.php
- WordPress Network on IIS7/SQL Server – Rewrite Issues
- Custom comments
- Custom rewrite rules for feeds of custom queries (query_var query strings in URL)?
- WordPress 404 unless there is a space in url
- Migrating a page to be an article
- How to get “extended” path info from URL in a plugin
- Rewriting rules: difference between ‘init’, ‘rewrite_rules_array’, ‘generate_rewrite_rules’?
- Multiple Permalinks for Same Post
- How to perform a query at the URL?
- Is there a ‘rake routes’ for wordpress?
- Rewriting URLs in WordPress
- add_rewrite_rule() to route to file other than index.php
- Custom query_vars and parse_request on wp-admin
- ‘rewrite_rules_array’ or ‘generate_rewrite_rules’ for adding custom rewrite rules?
- How to Add a Rewrite Rule for Only One Page?
- Custom rewrite not working
- My WP_options db rewrite_rules Does Not Work
- Disable Pagination on Pages
- How to add a Rewrite Rule / Category Structure
- Custom rewrite_rules – only pass numbers and not alphabetic characters
- How to add a custom redirect rule for Post as subdomains?
- How to preserve the query string while using add_rewrite_rule and default public query vars
- How do I display only the parent page in the url
- How to use add_rewrite_rule in subdomain
- Why is WordPress rewriting absolute URLs on staging site to include staging prefix when we manually point them at the live site?
- Rewrite the default post object’s permalink
- WordPress search rewriting
- Enpoint Not Found in Rewrite Tag Permalink
- Custom Rewrite Rules
- URL Rewrite with Custom Variables
- How to add custom rewrite rules and point to specific templates
- show ALL latest posts with archive.php on example.com/latest
- Adding a query string to only one page url
- WP redirect rule doesn’t work
- URL rewrite in theme doesn’t seem to be working
- WordPress Rewrite rule is not working
- Redirect URL to an existing page with query string or #! added on
- Rewrite rule that wp-login.php?action=register is left alone
- remove archive from url :: marketpress
- Trying to add array of paths to post permalink
- How to rewrite URL back to default custom URL if no destination found
- Use URI suffix as parameter and ignore when resolving page
- Rewrite the search page to use an appended slug + parameter
- add_rewrite_rule with optional parameters
- Append a parametter at first or last to a certain URL
- Why wordpress rewrite my custom URL?
- Rewrite rule regex help required
- Rewrite dynamic URLs as pretty URLs in WordPress functions.php (add_rewrite_rule) – what’s wrong with my code?
- Rewrite rule not working, suspect redirect string
- Rewrite Rule added but showing 404 rather than specified page
- Custom taxonomy Rewrite Rule
- taxonomy term in URL slug won’t forward to the correct term for custom post like it does for default categories/normal posts
- I want to add one extra field to my URLs, I’m using Rewrite functions but it doesn’t work
- Font Page overrides rewrites
- rewrite rule for home/index page
- WordPress Custom Rewrite Rule
- Additional .htaccess rules based on wp page
- URL Rewriting in WordPress
- Rewrite URL variable to custom path
- Lost WordPress website access after changing URL [closed]
- Rewrite rule to simulate page hierarchy results in 404
- add_rewrite_rule not working with custom variables
- add_rewrite_rule doesn’t work when trying to add a new parameter at the end of URL
- Standard Regex syntax doesn’t work in WordPress rewrite rule