Hi, I’m trying to use str_replace to replace some German characters with their ASCII equivalents, like so:
$description = str_replace("%ö%", "ö", $description);
And I also tried
$description = str_replace("%ö%", "ö", $description);
I checked in the database and it doesn’t show as the correct character- it shows as ö (and outputs as that)
I need to be able to input / output German characters correctly in my form- I was hoping str_replace would do the job but it seems that it doesn’t.
My pages all have UTF-8 encoding in the header (I’ve heard that sometimes the issue is non-UTF encoding)
Any ideas?