11
I’m having problems with the accents in my code and I wanted to remove the accents when they did the research,
Ex: Search: Hello | Hello.
When doing a Music search on the site it returns the url like this: search.php? q=Music
and brings no results, BUT when I search for Musica it returns like this:
search.php?q=Musica
with the results.
How do I get the accents out of the code below:
<div class="search_result">
<div class="image-container">
<a href="' . $song[0] . '/'.str_replace(' ','-',strtolower(trim(preg_replace('/[^a-zA-Z0-9]+/', '-', $song[1]), '-'))).'.html"><img src="'. $song[2] . '"></a>
</div>
<div class="search-container">
<div class="lead"><a href="' . $song[0] . '/'.str_replace(' ','-',strtolower(trim(preg_replace('/[^a-zA-Z0-9]+/', '-', $song[1]), '-'))).'.html">' . $song[1] . '</a></div>
<div class="search-duration">'.$lang['search_description'].' '.$description.'</div>
<div class="search-duration">'.$lang['search_duration'].' '. $song[4] .'</div>
</div>
</div>
See if these answers resolve your needs: http://answall.com/q/858/101 and http://answall.com/q/33029/101
– Maniero
It didn’t work or I’m not getting it fixed.
– feliphe felix
@feliphefelix "It didn’t work or I’m not getting it fixed" is vague and non-specific... can be more specific to know where you need help?
– Sergio
I edited the post!.
– feliphe felix
@flourigh rejected your issue because you tried to change the question, trying to answer it. Edits should not add anything other than the author’s intention. If you have a solution, use the answer field.
– user28595