Issue
i have deployed a laravel site on debian 7.5, apache2, php7. in my mac the site is fine, but after deployed, site reports following error:the php files all are utf-8 code, and the php.ini shows the php7's default chareter set is utf-8 as well, pls help me out there, thanks in advance.
ErrorException in Mbstring.php line 351: iconv_strpos(): Detected an illegal character in input string
in Mbstring.php line 351 at HandleExceptions->handleError('8', 'iconv_strpos(): Detected an illegal character in input string', '/var/www/stockhit/vendor/symfony/polyfill-mbstring/Mbstring.php', '351', array('haystack' => '��J��`�I�3���؉�W� �"�l���', 'needle' => 'base64:', 'offset' => '0', 'encoding' => 'UTF-8'))
Solution
finally got it down, somehow, indebian, the key generate will generate a string start with: Base64:........ , and the 'cipher' => 'AES-256-CBC', it doesnt allow this this format, the solution is manually cut base64andsomechar, remain 32 length string, then the problem solve~
Answered By - alextre