The CHARSET() function identifies the character set used for a specified string : CHARSET « I18N « SQL / MySQL






The CHARSET() function identifies the character set used for a specified string

   
mysql>
mysql> SELECT CHARSET('cats and dogs');
+--------------------------+
| CHARSET('cats and dogs') |
+--------------------------+
| latin1                   |
+--------------------------+
1 row in set (0.00 sec)

   
    
    
  








Related examples in the same category

1.Set DEFAULT CHARSET=latin1
2.Get CHARSET
3.Get the charset and collation information
4.Optionally, you can specify a default character set and sort order:
5.Change the Character Set of All Text Columns
6.MySQL Character Set Variables
7.Changing the Character Set
8.Specifying the Character Set of a Character String (Cast Operator)
9.CREATE DATABASE statement specifies the character set and collation:
10.To change the character set to latin1 for the BookSales database, use the following ALTER DATABASE statement
11.CONVERT( USING )
12.Check the character set
13.Check the character set name and description
14.Character setting for char type column
15.CHARACTER SET utf8 for column definition
16.CHARACTER SET 'latin1', CHARACTER SET 'hp8'
17.Check the character set settings
18.Check the default character set name
19.Table with default chartset= latin1;
20.Set default character during table definition