title: Highlight search term in mysql php search accented characters also
body: <p>Following answer 3 to this question "<a href="https://stackoverflow.com/questions/21292236/highlight-search-term-in-mysql-php-search">Highlight search term in mysql php search</a>" I could achieve word highlighting, the only thing I still can not figure out is how to highlight accented versions of the word, the query do find for instance "wesha" and "weshá" but highlighting only works for "wesha"..</p>
  
  <p>here is my code:</p>
  
  <pre><code>echo "&lt;p&gt;".str_replace($palabra,"&lt;strong&gt;$palabra&lt;/strong&gt;",$row['definicion'])."&lt;/p&gt;";
  </code></pre>
  
  <p>Thanks</p>
  
  <p>By the way, changing to <code>str_ireplace</code> makes the match with words in capital but change them into non capital letters, is there a way to include this also? </p>