Im using the function get_query_var() to retrive my url path.
My url path looks like: /categories/500-Beställning
Now to retrieve this I use:
$url = get_query_var('title2');
If I var_dump($url);
I get: string(29) "500-Best%C3%A4llning"
.
Now the letter ä
is encoded. I have tried the function utf8_decode
, which did not work, to decode it. But I am not quite sure to what is is encoded and how to correctly decode it. Thanks!