MySQL : strange LENGTH() behaviour on utf8 string
问题 I am doing unit tests on requests generators, and I get in trouble with LENGTH function. I have 2 requests that follows each other : SHOW VARIABLES LIKE '%character%' Returns the following result : array(8) { [0] => array(2) { 'Variable_name' => string(20) "character_set_client" 'Value' => string(4) "utf8" } [1] => array(2) { 'Variable_name' => string(24) "character_set_connection" 'Value' => string(4) "utf8" } [2] => array(2) { 'Variable_name' => string(22) "character_set_database" 'Value' =