DB_CHARSET

The WordPress Core DB CHARSET constant.

Value (string)

'utf8' 

Usage

  1. if ( defined( 'DB_CHARSET' ) ) { 
  2.  
  3. // grab the value 
  4. $value = constant( 'DB_CHARSET' ); 
  5.  
  6. if ( !empty( $value ) ) { 
  7. // go forth and prosper... 
  8.  

Defined (1)

The constant is defined in the following location(s).

/wp-config-sample.php  
  1. define('DB_CHARSET', 'utf8');