failure while reading excel file: mb_convert_encoding()

Topics: Developer Forum
Sep 20, 2013 at 4:34 PM
Edited Sep 20, 2013 at 4:35 PM
i use Laravel 4 with php 5.4 and the package os/phpExcel (dev-master) on Mac.
I wrote a function that reads some data from an excel file. The files are downloaded automatically and I do not modify them manually. The data reading works fine but one excel file causes that problem:
ErrorException","message":"mb_convert_encoding(): Illegal character encoding specified","file":"xxx/vendor\/os\/php-excel\/PHPExcel\/Shared\/String.php","line":493

I printed out the variables that are used:
string(12) "Hans Peter" ($value)
string(5) "UTF-8" ($to)
string(3) "MAC" ($from)

I hope you can help me. If you need some additional information please let me know.