I don’t think the upgrade touches the config.inc.php file (other than to read it, of course);
$database_connection_method = 'SET CHARACTER SET';
database_connection_charset