nitiphone2021 Posted June 28, 2021 Share Posted June 28, 2021 (edited) Dear all, According to I install old project about cakePHP and I make some report but get a error about Server Internal error As I checked It's error about this code try{ $excelContent = chr(255).chr(254).@mb_convert_encoding($excelContent, 'UTF-16LE', 'UTF-8'); } catch (Exception $e) { echo 'Caught exception: ', $e->getMessage(), "\n"; } Do you have any idea about this code? I try to catch the error but it's not work Edited June 28, 2021 by nitiphone2021 Quote Link to comment https://forums.phpfreaks.com/topic/312992-php-5-internal-error-about-chr255chr254mb_convert_encoding/ Share on other sites More sharing options...
gw1500se Posted June 28, 2021 Share Posted June 28, 2021 Remove the error suppression character (@) and post the actual error. Quote Link to comment https://forums.phpfreaks.com/topic/312992-php-5-internal-error-about-chr255chr254mb_convert_encoding/#findComment-1587622 Share on other sites More sharing options...
nitiphone2021 Posted June 29, 2021 Author Share Posted June 29, 2021 Now It fixed by install mdstring extension. Thank you very much Quote Link to comment https://forums.phpfreaks.com/topic/312992-php-5-internal-error-about-chr255chr254mb_convert_encoding/#findComment-1587653 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.