I have a search form in SPIP which does a GET to /recherche
Now when I am typing something like cinéma
the é is automatically being encoded to something like cin%25C3%25A9ma
In SPIP, if I do
<?php echo urldecode($_GET['recherche']; ?>
It is being converted back to cinéma.
However, In SPIP, I would retrieve the value of recherche with something like this:
#ENV{recherche}
Is there someway to decode this variable. Any in-built function in SPIP?
You can create your own filter, adding this function in your
mes_fonctions.php
file:You then can use
[(#ENV{recherche}|urldecode)]
in your squelette.