I have a special character that I want to replace from a string.
The character is š and i want to replace with s but I didn't managed to do this with this particular php file. It is actually encoded utf-8 .

Please help me this is becoming a nightmare.

Member Avatar for diafol

Show us your code. The s with caron, should be ok. This works for me:

$name = "Alaš";
echo str_replace('š','s',$name);
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.