Name
CHARSET()
Synopsis
CHARSET(string
)
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 | +-----------------+
Get MySQL in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.