Hi, I'm trying to use str_replace to replace some German characters with their ASCII equivalents, like so:
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)
$description = str_replace("%๖%", "๖", $description);
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)
I also made sure my mySQL db was UTF-8 encoded throughout, but still no joy.