The sql_get_charset() function is used to check if the usage of the particular character encoding is available on the database server.

sql_get_charset() accepts three parameters, with only the first being mandatory:

  1. $charset is the charset being requested, such as "utf8"
  2. $serveur,
  3. $options.

Author Mark Baber Published : Updated : 17/05/10

Translations : English, français