Bonjour,
En essayant d'utiliser PHPExcel (http://phpexcel.codeplex.com/) avec mkframework j'ai l'erreur suivante :
Erreur
iconv(): Detected an illegal character in input string
#0 [internal function]: exception_error_handler(8, 'iconv(): Detect...', 'C:\wamp\www\mkf...', 386, Array)
#1 C:\wamp\www\mkframework\data\genere\these\lib\phpexcel\PHPExcel\Shared\String.php(386): iconv('UTF-8', 'UTF-8', '???????????????...')
#2 C:\wamp\www\mkframework\data\genere\these\lib\phpexcel\PHPExcel\Cell\DefaultValueBinder.php(59): PHPExcel_Shared_String::SanitizeUTF8('???????????????...')
#3 C:\wamp\www\mkframework\data\genere\these\lib\phpexcel\PHPExcel\Cell.php(218): PHPExcel_Cell_DefaultValueBinder->bindValue(Object(PHPExcel_Cell), '???????????????...')
#4 C:\wamp\www\mkframework\data\genere\these\lib\phpexcel\PHPExcel\Worksheet.php(1042): PHPExcel_Cell->setValue('???????????????...')
#5 C:\wamp\www\mkframework\data\genere\these\module\excel\main.php(60): PHPExcel_Worksheet->setCellValue('A5', '???????????????...')
#6 C:\wamp\www\mkframework\data\genere\these\lib\framework\class_root.php(230): module_excel->_index()
#7 C:\wamp\www\mkframework\data\genere\these\public\index.php(39): _root->run()
#8 {main}
Detail:
#0 exception_error_handler( , 'iconv(): Detected an illegal character in input string' , 'C:\wamp\www\mkframework\data\genere\these\lib\phpexcel\PHPExcel\Shared\String.php' , , Array ( [value] => éàèùâêîôûëïüÿäöüç ) )
#1 C:\wamp\www\mkframework\data\genere\these\lib\phpexcel\PHPExcel\Shared\String.php (386)
iconv( 'UTF-8' , 'UTF-8' , 'éàèùâêîôûëïüÿäöüç' )
#2 C:\wamp\www\mkframework\data\genere\these\lib\phpexcel\PHPExcel\Cell\DefaultValueBinder.php (59)
PHPExcel_Shared_String :: SanitizeUTF8( 'éàèùâêîôûëïüÿäöüç' )
#3 C:\wamp\www\mkframework\data\genere\these\lib\phpexcel\PHPExcel\Cell.php (218)
PHPExcel_Cell_DefaultValueBinder -> bindValue( , 'éàèùâêîôûëïüÿäöüç' )
#4 C:\wamp\www\mkframework\data\genere\these\lib\phpexcel\PHPExcel\Worksheet.php (1042)
PHPExcel_Cell -> setValue( 'éàèùâêîôûëïüÿäöüç' )
#5 C:\wamp\www\mkframework\data\genere\these\module\excel\main.php (60)
PHPExcel_Worksheet -> setCellValue( 'A5' , 'éàèùâêîôûëïüÿäöüç' )
#6 C:\wamp\www\mkframework\data\genere\these\lib\framework\class_root.php (230)
module_excel -> _index( )
#7 C:\wamp\www\mkframework\data\genere\these\public\index.php (39)
_root -> run( )
#8 {main}
J'utilise le premier exemple de phpexcel, et c'est lui qui cause le problème. Lorsque je le lance sans le framework, il se déroule correctement. Par ailleurs, il plante au moment d'insérer des caractères spéciaux, si je remplace les caractères spéciaux par des caractères normaux, ça se passe bien.
Partager