URL encoding
-
Hello Tobias,
when using your “TablePress Extension: Shortcode Filter from GET parameter” the search filter works perfectly fine when coming from another page via a URL like http://domain.com/?table_filter=SearchTerm.
However, I have trouble with search terms that inlcude characters like – ä ö ü ß (basically German characters for terms like Rheinland-Pfalz or Thüringen). It seems that this post https://wordpress.org/support/topic/filter-table-through-url is helpful. Nevertheless, I must be doing something wrong, when trying to solve it for my purposes.
Would it be possible to explain a bit further the change that needs to be done in your PHP Extension:
$filter_term = preg_replace( '#[^a-z0-9]#i', '', $filter_term );Furthermore, I understood that the special characters needs to be changed like here http://www.w3schools.com/tags/ref_urlencode.asp from UTF-8. Maybe, it’s not working due to my incorrect PHP changes. However, it would be great, if you could also give an example for an according search term ( for example Thüringen = Th%26%C3%BC%3Bringen).
I hope, I’m not asking too much and appreciate your support!
Many thanks, Julia
The topic ‘URL encoding’ is closed to new replies.