Convert out accented characters from the_title
-
I’m using <?php the_title(); ?> to include external links based on pages title. This works great, except that on some sites, accented characters will break search results, e.g.:
https://www.variety.com/search/siteall?q=amélie&x=0&y=0&s=date
vs.
https://www.variety.com/search/siteall?q=amelie&x=0&y=0&s=dateIs there a way I could convert accented to corresponding “normal” characters from the_title?
Like the word “amélie” would be returned as “amelie”.
Many thanks.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Convert out accented characters from the_title’ is closed to new replies.