The encoding of your characters you see is utf8 – this is needed to store the non-ascii characters in the database it is converted backwards and forwards by wordpress/your browser automatically.
Where are you trying to manipulate the characters? In a plugin?
westi
Yes, I’m creating a PHP-plugin which uppercases text. However, I’m unable to do it.
strtoupper(“televisión”) =====> TELEVISIóN
It’s due to special characters (instead of ‘televisión’, I’m trying to uppercase ‘televisión’).
Ok there are two ways that you could achieve this:
- Use iconv to convert the string from UTF-8 to the correct ISO charset for spain apply your conversions and then use iconv to convert back to UTF-8 – This will only work if the locale on the machine running the php code is set to be spanish other wise strtoupper won’t convert the accented letters.
- Use mb_strtoupper() which looks like it will handle the multibyte (UTF-8) characters correctly for you
hope this helps
westi