This function returns the character set used by a given
string. It’s available as of version 4.1.0 of MySQL. Here is an
example:
SELECT CHARSET('Rosá')
AS 'Set for My Name';
+-----------------+
| Set for My Name |
+-----------------+
| utf8 |
+-----------------+