assertEquals( 'test', PMA_convertString('UTF-8', 'UTF-8', 'test') ); // 6 represents an arbitrary value for testing the default case $GLOBALS['PMA_recoding_engine'] = 6; $this->assertEquals( 'test', PMA_convertString('UTF-8', 'flat', 'test') ); // TODO: remove function_exists if recode_string exists on server if (@function_exists('recode_string')) { $GLOBALS['PMA_recoding_engine'] = PMA_CHARSET_RECODE; $this->assertEquals( 'Only That ecole & Can Be My Blame', PMA_convertString( 'UTF-8', 'flat', 'Only That école & Can Be My Blame' ) ); } $GLOBALS['PMA_recoding_engine'] = PMA_CHARSET_ICONV; $GLOBALS['cfg']['IconvExtraParams'] = '//TRANSLIT'; $this->assertEquals( "This is the Euro symbol 'EUR'.", PMA_convertString( 'UTF-8', 'ISO-8859-1', "This is the Euro symbol '€'." ) ); } }