PHP: Fixing encoding issues with database content - removing accents from characters
I'm trying to make a URL-safe version of a string.

In my database I have a value `medúlla` - I want to turn this into `medulla`.

I've found plenty of functions to do this, but when I retrieve the value from the database it comes back as `medÃºlla`. 

I've tried:
<ul>
<li>Setting the <b>column</b> as utf_8 encoding</li>
<li>Setting the <b>table</b> as utf_8 encoding</li>
<li>Setting the <b>entire database</b> as utf_8 encoding</li>
<li>Running `SET NAMES utf8` on the database before querying</li>
</ul>

When I echo the value onto the screen it displays as I want it to, but the conversion function doesn't see the ú character (even a simple `str_replace()` doesn't work either).

Does anybody know how I can force the system to recognise this as UTF-8 and allow me to run the conversion?

Thanks,
Matt
PHP: Fixing encoding issues with database content - removing accents from characters
===

I'm trying to make a URL-safe version of a string.

In my database I have a value `medúlla` - I want to turn this into `medulla`.

I've found plenty of functions to do this, but when I retrieve the value from the database it comes back as `medÃºlla`. 

I've tried:
<ul>
<li>Setting the <b>column</b> as utf_8 encoding</li>
<li>Setting the <b>table</b> as utf_8 encoding</li>
<li>Setting the <b>entire database</b> as utf_8 encoding</li>
<li>Running `SET NAMES utf8` on the database before querying</li>
</ul>

When I echo the value onto the screen it displays as I want it to, but the conversion function doesn't see the ú character (even a simple `str_replace()` doesn't work either).

Does anybody know how I can force the system to recognise this as UTF-8 and allow me to run the conversion?

Thanks,
Matt